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.gauges.linear([10, 20, 40, 30, 44]);
3
4
chart.addPointer(2, 1, 0);
5
6
var linearAxis = chart.axis();
7
8
// Get axis offset.
9
var offset = linearAxis.offset();
10
11
chart.width(600).height(400);
12
chart.title('Axis offset is ' + offset);
13
chart.container('container');
14
chart.draw();
15
});