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([2, 5, 1, 8], [6, 3, 8, 4], [10, 6, 13, 1]);
3
4
var series1 = chart.getSeries(0);
5
series1.markers(true);
6
7
var series2 = chart.getSeries(1);
8
series2.markers(true);
9
10
var series3 = chart.getSeries(2);
11
series3.markers(true);
12
13
var palette = anychart.palettes.markers();
14
15
// Set markers
16
palette.items('cross', 'circle', 'diagonal-cross');
17
18
chart.markerPalette(palette);
19
chart.title('Set several markers types');
20
chart.container('container');
21
chart.draw();
22
});