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.column3d();
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
var series = chart.getSeries(0);
14
series.id('Not seasonal');
15
16
// Removes the first series by id.
17
chart.removeSeries('Not seasonal');
18
19
chart.title('Remove series by id');
20
chart.container('container');
21
chart.draw();
22
});