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.scatter([
3
{x: 2, y: 21},
4
{x: 14, y: 24},
5
{x: 89, y: 23},
6
{x: 48, y: 18}
7
]);
8
9
// Sets chart minor grid.
10
chart.minorGrid({axis: chart.yAxis()});
11
12
chart.title("Set minor grid parameter as object.");
13
chart.container("container");
14
chart.draw();
15
});