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 stage = anychart.graphics.create("container", 600, 400);
3
4
var chart = anychart.gauges.linear();
5
6
// Set data.
7
chart.data([[15], [20], [25], [30], [44]]);
8
9
chart.addPointer(4, 3, 2, 1, 0);
10
chart.title("Set data as an array of arrays.");
11
chart.container(stage);
12
chart.draw();
13
});