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
{x: 'A1', value: 0.1},
4
{x: 'A2', value: 1.4},
5
{x: 'A3', value: 1.2},
6
{x: 'A4', value: 1.9}
7
]);
8
9
var yScale = chart.yScale();
10
11
// Set value.
12
yScale.stickToZero(false);
13
14
chart.title('Disable sticking to zero');
15
chart.container('container');
16
chart.draw();
17
});