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
chart.range({from: 0, to: 10});
7
chart.range(1, {from: 10, to: 20});
8
9
// Get axis.
10
var axis = chart.axis();
11
axis.enabled(true);
12
axis.orientation('top');
13
axis.stroke('3 #FF0000');
14
15
chart.title({text: 'Get and modify chart axis', orientation: 'top'});
16
chart.bottom('60%');
17
chart.container('container');
18
chart.draw();
19
});