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.splineArea([
5
{x: "January", value: 5},
6
{x: "February", value: 6},
7
{x: "March", value: 9},
8
{x: "April", value: 6},
9
{x: "May", value: 8},
10
{x: "June", value: 4}
11
]);
12
series.hoverStroke("#F44336");
13
14
// Get hover series stroke.
15
var hoverStroke = series.hoverStroke();
16
17
// Hover series.
18
series.hover();
19
20
chart.title({text: "Get and use hover series stroke", fontColor: hoverStroke});
21
chart.container("container");
22
chart.draw();
23
});