0👍
If you bind the mousemove event to the canvas itself you can get the elements/datasets with the build in methods of chart.js by passing it the event itself.
https://www.chartjs.org/docs/latest/developers/api.html#getelementatevente
- Chartjs-How to can I get text inside a chats.js circular chart
- Chartjs-How do you remove the data value from the mouse-over result in radar chart?
Source:stackexchange.com