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
4
var lineSeries = chart.line([1, 1.6, 1.2, 2.1]);
5
6
chart.column([5, 1, 2, 1.6]);
7
8
// Gets Z-Index of the line series.
9
var zIndex = lineSeries.zIndex();
10
11
chart.title("Z-Index of the series - " + zIndex);
12
13
chart.container("container");
14
chart.draw();
15
});