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
3
// setting data
4
var data = [
5
["A", 637166],
6
["B", 721630],
7
["C", 148662],
8
["D", 78662],
9
["E", 90000]
10
];
11
12
var chart = anychart.column(data);
13
14
// axes orientation adjusting
15
chart.yAxis().orientation("right");
16
chart.xAxis().orientation("top");
17
18
// axes titles adjusting
19
chart.yAxis().title("Y Axis title on the right");
20
chart.xAxis().title("X Axis title on the top");
21
22
chart.container("container");
23
chart.draw();
24
});