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([
3
{value: 0.05},
4
{value: 1},
5
{value: 10},
6
{value: 150},
7
{value: 100000}
8
]);
9
chart.addPointer(4, 3, 2, 1, 0);
10
chart.axis(0, {offset: '-11%'});
11
12
// Set scale.
13
chart.scale('log');
14
15
chart.title('Set scale as an instance');
16
chart.container('container');
17
chart.draw();
18
});