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
header: ['#', 'Florida', 'Texas', 'Arizona'],
5
rows: [
6
['Nail polish', 12814, 3054, 4376],
7
['Eyebrow pencil', 13012, 5067, 3987],
8
['Rouge', 11624, 7004, 3574],
9
['Lipstick', 8814, 9054, 4376],
10
['Eyeshadows', 12998, 12043, 4572],
11
['Eyeliner', 12321, 15067, 3417],
12
['Foundation', 10342, 10119, 5231],
13
['Lip gloss', 22998, 12043, 4572]
14
]
15
});
16
17
// Set legend settings.
18
chart.legend({position: 'right', itemsLayout: 'vertical', align: 'top'});
19
20
chart.title('Set legend settings');
21
chart.container('container');
22
chart.draw();
23
});