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([15, 20, 25, 30, 44]);
3
4
var tankPointer = chart.tank(3);
5
6
var state = tankPointer.normal();
7
8
// Enable hatch fill for the empty part of a tank.
9
state.emptyHatchFill(true);
10
11
chart.width(600).height(400);
12
chart.title('Enable state hatch fill');
13
chart.container('container');
14
chart.draw();
15
});