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
4
// Set data.
5
chart.data('1|15 2|20 3|25 4|30 5|44', {'rowsSeparator': ' ', columnsSeparator: '|'});
6
7
chart.addPointer(4, 3, 2, 1, 0);
8
chart.title('Set data as CSV');
9
chart.container('container');
10
chart.draw();
11
});