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
palette.items(['cross', 'circle', 'diagonal-cross']);
15
16
// Get markers.
17
var items = palette.items();
18
19
items.reverse();
20
21
chart.markerPalette(palette);
22
chart.title('Get and modify markers');
23
chart.container('container');
24
chart.draw();
25
});