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
// Set theme.
4
anychart.theme(["morning",
5
{
6
column: {
7
title: {
8
enabled: true,
9
text: 'Set theme parameters as an array of string and object'
10
}
11
}
12
}
13
]);
14
15
var chart = anychart.column();
16
17
chart.column([21.2, 32.5, 21.3, 44.5, 21, 35.2, 67.7]);
18
chart.column([21, 97, 56, 24, 27, 30, 27]);
19
chart.column([38, 124, 75, 40, 40, 50, 39]);
20
chart.container("container");
21
chart.draw();
22
});