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.line();
3
chart.line([1, 2, 3, 4]);
4
chart.line([2, 3, 4, 1]);
5
chart.line([3, 4, 1, 2]);
6
chart.line([4, 1, 2, 3]);
7
8
// Sets palette.
9
chart.palette(["#827717", "#c77532", "#998675", "#6b617b"]);
10
11
chart.title("Set series color palette.");
12
chart.container("container");
13
chart.draw();
14
});