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
// Set bar pointer by index.
6
chart.bar(0, {fill: '#2BC0E4'});
7
8
// Set bar pointer by index.
9
chart.bar(1, {fill: '#EAECC6'});
10
11
chart.title('Set bar pointer settings as an object by indexes');
12
chart.container('container');
13
chart.draw();
14
});