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
var chart = anychart.column3d();
4
chart.data([
5
['Apples', 5, 8, 4],
6
['Pears', 6, 2, 5],
7
['Bananas', 2, 6, 4],
8
['Peaches', 6, 3, 8]
9
]);
10
11
// Set chart bounds.
12
chart.bounds(0, 0, 500, 500);
13
14
chart.title('Set chart bounds parameters');
15
chart.container('container');
16
chart.draw();
17
});