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.cartesian();
3
chart.column([
4
{x: 'January', value: 29},
5
{x: 'February', value: 72},
6
{x: 'March', value: 250},
7
{x: 'April', value: 330},
8
{x: 'May', value: 85},
9
{x: 'June', value: 390},
10
{x: 'July', value: 95},
11
{x: 'August', value: 15}
12
]);
13
14
// Enable xGrid.
15
chart.xGrid(true);
16
17
chart.title('Enable chart xGrid');
18
chart.container('container');
19
chart.draw();
20
});