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 = anychart.data.set([
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
var yAxis = chart.yAxis();
16
yAxis.orientation("right");
17
var xAxis = chart.xAxis();
18
xAxis.orientation("top");
19
20
// axes titles adjusting
21
xAxis.title("X Axis title on the top");
22
yAxis.title("Y Axis title on the right");
23
24
chart.container("container");
25
chart.draw();
26
});