[Chartjs]-Chart.js multiple dataset issue: hovering over n-th point "hovers" over every dataset's n-th point

7👍

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.

Leave a comment