Chartjs-React Chart.js disabling interactivity for a single dataset

0πŸ‘

βœ…

I suggest using chartjs-plugin-annotation to draw the second line, instead of a second dataset. Then you don’t have to worry about interactivity at all.

If you want to stick with your current approach, then the tooltip plugin offers lots of options – the simplest might be to add a filter to exclude the second dataset.

Leave a comment