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 dataTable = anychart.data.table();
3
dataTable.addData(get_dji_daily_short_data());
4
5
var chart = anychart.stock();
6
chart.padding(10, 10, 10, 60);
7
8
var plot1 = chart.plot(0);
9
plot1.line(dataTable.mapAs({value: 1}));
10
11
var plot2 = chart.plot(1);
12
plot2.line(dataTable.mapAs({value: 2}));
13
14
plot1.rangeMarker({fill: '#EF9A9A 0.4', from: 11483, to: 13483});
15
16
// Disable range marker.
17
plot1.rangeMarker(false);
18
19
chart.title('Disable range marker');
20
chart.container('container');
21
chart.draw();
22
});