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.waterfall(
3
[166, 43, -79, -46, 84, NaN],
4
[50, -25, 30, 28, 83, NaN]
5
);
6
7
// Removes all series.
8
chart.removeAllSeries();
9
10
chart.title("Remove all series from a chart");
11
chart.container("container");
12
chart.draw();
13
});