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 stage = anychart.graphics.create("container", 600, 400);
3
4
chart = anychart.gauges.linear([15, 20, 25, 30, 44]);
5
chart.thermometer(3);
6
7
// Get axis.
8
var rightAxis = chart.axis();
9
rightAxis.labels(false);
10
11
// Get axis by index.
12
var leftAxis = chart.axis(1);
13
leftAxis.labels({fontSize: 10, rotation: -30});
14
leftAxis.offset("-17%");
15
16
chart.title("Get and modify axis.");
17
chart.container(stage);
18
chart.draw();
19
});