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: 15},
4
{value: 20},
5
{value: 25},
6
{value: 30},
7
{value: 44}
8
]);
9
10
// Add thermometer pointer.
11
chart.thermometer(2);
12
13
chart.axis({offset: '-11%'});
14
chart.title('Add Thermometer pointer to a gauge');
15
chart.container('container');
16
chart.draw();
17
});