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: 44},
4
{value: 30},
5
{value: 25},
6
{value: 20},
7
{value: 15}
8
]);
9
10
chart.bar(0);
11
chart.bar(1);
12
chart.bar(2);
13
chart.bar(3);
14
chart.bar(4);
15
16
// Get pointer by index.
17
var pointer = chart.getPointerAt(0);
18
pointer.hatchFill(true);
19
20
chart.title('Get and modify pointer');
21
chart.container('container');
22
chart.draw();
23
});