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: 'January', value: 29},
4
{x: 'February', value: 72},
5
{x: 'March', value: 250},
6
{x: 'April', value: 330},
7
{x: 'May', value: 85},
8
{x: 'April', value: 390},
9
{x: 'June', value: 95},
10
{x: 'Jule', value: 15}
11
]);
12
13
var customScale = anychart.scales.linear();
14
customScale.ticks({interval: 50});
15
16
chart.yScale(customScale);
17
18
var grid = chart.yGrid();
19
20
// Get drawing the last line.
21
var minorState = grid.isMinor();
22
23
chart.title('State of the minor grid is ' + minorState);
24
chart.container('container');
25
chart.draw();
26
});