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
{value: 10},
4
{value: 15}
5
]);
6
7
chart.range({from: 0, to: 5});
8
chart.range(1, {from: 5, to: 10});
9
chart.range(2, {from: 10, to: 15});
10
chart.range(3, {from: 15, to: 20});
11
12
// Get chart credits.
13
// You can't customize credits without a license key. See https://www.anychart.com/buy/ to learn more.
14
chart.credits(false);
15
16
chart.title({text: 'Disables chart credits', orientation: 'top'});
17
chart.padding(20);
18
chart.bounds(0, 0, '100%', 150);
19
chart.container('container');
20
chart.draw();
21
});