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
[0, 2, 3],
6
[1, 3, 6],
7
[2, 2, 4],
8
[3, 5, 8]
9
]);
10
series.hoverLowStroke("#F44336");
11
12
// Gets low stroke on hover stroke.
13
var hoverLowStroke = series.hoverLowStroke();
14
15
chart.title({fontColor: hoverLowStroke});
16
chart.container("container");
17
chart.draw();
18
});