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 mapping = dataTable.mapAs({high: 1, low: 3});
6
7
var chart = anychart.stock();
8
9
var plot = chart.plot();
10
11
var series = plot.rangeArea(mapping);
12
series.lowStroke('#F44336');
13
14
// Get low stroke.
15
var lowStroke = series.lowStroke();
16
17
chart.title({fontColor: lowStroke, text: 'Get and use low stroke'});
18
chart.container('container');
19
chart.draw();
20
});