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.marker();
3
chart.marker([10, 4, 17, 20]);
4
chart.marker([5, 16, 10, 3]);
5
chart.marker([25, 4, 28, 11]);
6
7
// Sets marker palette
8
chart.markerPalette(["star5", "cross", "circle"]);
9
10
chart.title("Set marker palette.");
11
chart.container("container");
12
chart.draw();
13
});