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.rangeArea([
5
{x: 'January', low: 2, high: 3},
6
{x: 'February', low: 3, high: 6},
7
{x: 'March', low: 2, high: 4}
8
]);
9
10
// Set high stroke.
11
series.highStroke('#F44336', 2, '5 2', 'round');
12
13
chart.title('Set high stroke parameters');
14
chart.container('container');
15
chart.draw();
16
});