HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
anychart.onDocumentReady(function () {
2
var chart = anychart.radar();
3
4
var series = chart.marker([
5
{x: 'January', value: 3},
6
{x: 'February', value: 6},
7
{x: 'March', value: 3},
8
{x: 'April', value: 6},
9
{x: 'May', value: 3},
10
{x: 'June', value: 6}
11
]);
12
13
// Get state.
14
var state = series.selected();
15
16
state.type('star5');
17
state.fill('#FFEB3B');
18
19
chart.title('Get and modify selected state');
20
chart.container('container');
21
chart.draw();
22
23
series.select();
24
});