AbelHeinsbroek / chartjs-plugin-crosshair

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

Compatibility with Chart.js 4.x #118

Closed juli4nb4dillo closed 11 months ago

juli4nb4dillo commented 1 year ago

When upgrading from Chart.js 3.9 to 4.2, this library stops working:

> nmp install
npm ERR! Found: chart.js@4.2.0
npm ERR! node_modules/chart.js
npm ERR!   chart.js@"4.2.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer chart.js@"^3.4.0" from chartjs-plugin-crosshair@1.2.0
npm ERR! node_modules/chartjs-plugin-crosshair
npm ERR!   chartjs-plugin-crosshair@"1.2.0" from the root project

package.json

...
"dependencies": {
    "chart.js": "4.2.0",
    "chartjs-plugin-crosshair": "1.2.0"
  },
...