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 data1 = [166, 43, -79, -46, 84, NaN];
3
var data2 = [50, -25, 30, 28, 83, NaN];
4
5
var chart = anychart.waterfall();
6
chart.addSeries(data1, data2);
7
8
// Removes the first series by index.
9
chart.removeSeriesAt(0);
10
11
chart.title('Remove series by index');
12
chart.container('container');
13
chart.draw();
14
});