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.bullet();
3
4
// Sets chart data.
5
chart.data("1|9 2|13", {"rowsSeparator": " ", columnsSeparator: "|"});
6
7
chart.range({from: 0, to: 6});
8
chart.range(1, {from: 6, to: 12});
9
chart.range(2, {from: 12, to: 18});
10
11
chart.title({text: "Set chart data as CSV", orientation: "top"});
12
chart.bottom("60%");
13
chart.container("container");
14
chart.draw();
15
});