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.area();
3
4
var series = chart.rangeArea([
5
{x: 'January', low: 3093, high: 19522},
6
{x: 'February', low: 4205, high: 32622},
7
{x: 'March', low: 4019, high: 41612},
8
{x: 'April', low: 4920, high: 53752},
9
{x: 'May', low: 5795, high: 78839},
10
{x: 'June', low: 8327, high: 75842},
11
{x: 'July', low: 7933, high: 69812},
12
{x: 'August', low: 15573, high: 59922},
13
{x: 'September', low: 14924, high: 42052},
14
{x: 'October', low: 12684, high: 31917}
15
]);
16
17
// Set fill.
18
series.fill({color: '#45B649', opacity: 0.6});
19
20
chart.title('Set fill parameter as an object');
21
chart.container('container');
22
chart.draw();
23
});