Installation
npm
npm install chartjs-plugin-crosshair --save
CDN
By default, https://cdn.jsdelivr.net/npm/chartjs-plugin-crosshair returns the latest (minified) version, however it's highly recommended to always specify a version in order to avoid breaking changes. This can be achieved by appending @{version} to the url:
https://cdn.jsdelivr.net/npm/chartjs-plugin-crosshair@1.1.2 // exact version
https://cdn.jsdelivr.net/npm/chartjs-plugin-crosshair@1 // latest 1.x.x
Read more about jsDeliver versioning on their website.
Download
You can download the latest version of chartjs-plugin-crosshair from the GitHub releases:
chartjs-plugin-crosshair.js(recommended for development)chartjs-plugin-crosshair.min.js(recommended for production)