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
{x: 0, value: 5},
4
{x: 1, value: 9},
5
{x: 2, value: 2},
6
{x: 3, value: 6}
7
]);
8
9
var rangeMarker = chart.rangeMarker();
10
11
// Set value.
12
rangeMarker.from(4);
13
14
rangeMarker.to(6);
15
16
chart.title('Set starting value for the range marker');
17
chart.container('container');
18
chart.draw();
19
});