AbelHeinsbroek / chartjs-plugin-crosshair

Crosshair plugin for ChartJS
https://chartjs-plugin-crosshair.netlify.com/samples/
MIT License
150 stars 86 forks source link

Working solution for modern chart.js setup (React) #117

Closed sarates closed 1 year ago

sarates commented 1 year ago

Has anyone managed to find a working solution for synced crosshairs with "chart.js": "^4.1.1" and "react-chartjs-2": "^5.1.0" setup? Thanks!

ViRuSTriNiTy commented 1 year ago

I guess you just have to implement the crosshair by yourself:

https://www.youtube.com/watch?v=Ptg-4p5p_1Q

nategrift commented 1 year ago

A new version was created to support v4 of chart.js. I am not sure about react-chartjs-2 but if it doesn't work with latest version of this plugin, please open another issue and we can resolve it there.