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 hover low stroke.
18
series.hoverLowStroke("#F44336", 3, "5 2", "round");
19
20
// Hover series.
21
series.hover();
22
23
chart.title("Set hover low stroke parameters");
24
chart.container("container");
25
chart.draw();
26
});