Chartist plugin that adds a hover event to each point, slice or bar on your chart.
npm install chartist-hoverChartist plugin that adds a hover event to each point, slice or bar on your chart.
```
yarn add chartist-hover
``
npm install chartist-hover
`html`
`javascript``
var chart = new Chartist.Line(
".ct-chart",
{
labels: [1, 2, 3, 4, 5, 6, 7],
series: [[1, 5, 3, 4, 6, 2, 3], [2, 4, 2, 5, 4, 3, 6]]
},
{
plugins: [
Chartist.plugins.hover({
onMouseEnter: () => null,
onMouseLeave: () => null,
triggerSelector: null
})
]
}
);