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
14
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
chart.yAxis(0, {orientation: "top", title: null});
9
chart.yAxis(1, {orientation: "left", title: "X-Axis"});
10
chart.yAxis(2, {orientation: "right", title: null});
11
chart.yAxis(1, false); // disables Y-axis by index
12
chart.container("container");
13
chart.draw();
14
});