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.line([
5
{x: 'January', value: 1},
6
{x: 'February', value: 5},
7
{x: 'March', value: 6},
8
{x: 'April', value: 9},
9
{x: 'May', value: 2},
10
{x: 'June', value: 3},
11
{x: 'July', value: 6},
12
{x: 'August', value: 4}
13
]);
14
15
// Get data.
16
var data1 = series.data();
17
var data2 = data1.filter('value', function (value) {
18
return value > 5;
19
});
20
21
chart.line(data2);
22
23
chart.title('Get and use data');
24
chart.container('container');
25
chart.draw();
26
});