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
[161.2, 51.6],
4
[167.5, 59.0],
5
[159.5, 49.2],
6
[157.0, 63.0]
7
]);
8
var yScale = chart.yScale();
9
yScale.ticks().interval(1);
10
var yAxis = chart.yAxis();
11
yAxis.minorLabels(true);
12
13
// Set mode for overlapMode.
14
yAxis.overlapMode(anychart.enums.LabelsOverlapMode.NO_OVERLAP);
15
16
var rightYAxis = chart.yAxis(1);
17
rightYAxis.minorLabels(true);
18
rightYAxis.orientation("right");
19
20
// Set mode for overlapMode.
21
rightYAxis.overlapMode(anychart.enums.LabelsOverlapMode.ALLOW_OVERLAP);
22
23
chart.container("container");
24
chart.draw();
25
});