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.line();
3
chart.data({
4
header: ['#', 'Florida', 'Texas', 'Arizona', 'Nevada'],
5
rows: [
6
['Apples', 1, 2, 3, 4],
7
['Pears', 2, 3, 4, 1],
8
['Bananas', 3, 4, 1, 2],
9
['Grapes', 4, 1, 2, 3]
10
]
11
});
12
13
// Removes all series.
14
chart.removeAllSeries();
15
16
chart.title('Remove all series from a chart');
17
chart.container('container');
18
chart.draw();
19
});