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([166, 43, -79, -46, 84, NaN]);
3
chart.yScale().minimum(-60);
4
5
// Generally speaking such construction is useless, but it may be used to turn zero line in a chart in the most compact way.
6
// To enable/disable lineMarkers it is recommended to create them by index ( like chart.lineMarker(0); ) and then use enabled(true|false) method:
7
// marker = chart.lineMarker(0);
8
// marker.enabled(true);
9
chart.lineMarker(true);
10
11
chart.title('Enable chart line marker');
12
chart.container('container');
13
chart.draw();
14
});