Example situation: I have 2 line datasets in one chart.
if I hover over the second dataset's second point, it also detects hover at every other dataset's second point.
Example situation: I have 2 line datasets in one chart.
if I hover over the second dataset's second point, it also detects hover at every other dataset's second point.
You need to set chartÂ's hover mode to 'nearest', in your chart options config, like so :
options: {
hover: {
mode: 'nearest'
},
...
this will ensure that only the hovered data-point gets active.
Here is the working fiddle.