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
4
chart.column([
5
{x: 'January', value: 10},
6
{x: 'February', value: 4},
7
{x: 'March', value: 17},
8
{x: 'April', value: 20}
9
]);
10
11
chart.column([
12
{x: 'January', value: 16},
13
{x: 'February', value: 35},
14
{x: 'March', value: 6},
15
{x: 'April', value: 15}
16
]);
17
18
// Get chart labels.
19
var labels = chart.labels();
20
21
labels.enabled(true);
22
labels.fontColor('#F00000');
23
24
chart.title('Get and modify chart labels');
25
chart.container('container');
26
chart.draw();
27
});