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 padding.
9
var padding = linearAxis.padding();
10
11
padding.left('30%');
12
13
chart.width(600).height(400);
14
chart.title('Get and modify axis padding');
15
chart.container('container');
16
chart.draw();
17
});