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.column();
3
chart.column([1, 2, 3, 4]);
4
chart.column([2, 3, 4, 1]);
5
chart.column([3, 4, 1, 2]);
6
chart.column([4, 1, 2, 3]);
7
8
// Set palette.
9
chart.palette(anychart.palettes.sea);
10
11
chart.title("Set series color palette from theme.");
12
chart.container("container");
13
chart.draw();
14
});