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 pastel theme.
4
anychart.theme("pastel");
5
6
var chart = anychart.bar();
7
8
chart.bar([38, 124, 75, 40, 40, 50, 39]);
9
chart.bar([21.2, 32.5, 21.3, 44.5, 21, 35.2, 67.7]);
10
chart.bar([21, 97, 56, 24, 27, 30, 27]);
11
chart.title("Set pastel theme.");
12
chart.container("container");
13
chart.draw();
14
});