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.column3d();
3
chart.data([
4
['Apples', 5, 8, 4],
5
['Pears', 6, 2, 5],
6
['Bananas', 2, 6, 4],
7
['Peaches', 6, 3, 8]
8
]);
9
10
// Set left bound
11
chart.left('10%');
12
13
// Set right bound
14
chart.right('10%');
15
16
// Set top bound
17
chart.top('20%');
18
19
// Set bottom bound
20
chart.bottom('20%');
21
22
chart.title('Set left/right/top/bottom bound');
23
chart.container('container');
24
chart.draw();
25
});