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.column();
3
4
var series = chart.column([
5
{x: "January", value: 6},
6
{x: "February", value: 16},
7
{x: "March", value: 4},
8
{x: "April", value: 12},
9
{x: "May", value: 5}
10
]);
11
series.hoverFill("#F44336");
12
13
chart.title("Disable hover by array of indexes");
14
chart.container("container");
15
chart.draw();
16
17
series.hover([2, 3, 4]);
18
19
// Disable hover by indexes 2 and 4.
20
series.unhover([2, 4]);
21
});