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.cartesian();
3
4
var series = chart.stepLine([
5
[0, 2, 3],
6
[1, 3, 6],
7
[2, 2, 4],
8
[3, 5, 8]
9
]);
10
series.markers(true);
11
12
// Set step direction.
13
series.stepDirection(anychart.enums.StepDirection.FORWARD);
14
15
chart.title("Set step direction");
16
chart.container("container");
17
chart.draw();
18
});