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.circular([{value: 20}, {value: 10}]);
3
chart.axis();
4
5
// Get needle pointer.
6
var firstNeedle = chart.needle(0);
7
firstNeedle.fill('#FF8A65');
8
9
// Get needle pointer by index.
10
var secondNeedle = chart.needle(1);
11
secondNeedle.fill('#4DB6AC');
12
13
chart.title('Get and modify needle pointer');
14
chart.container('container');
15
chart.draw();
16
});