npm version
See original GitHub issueOn the source code we see the version enabling
- onPan
- onZoom callbacks
But the version we have using
npm install chartjs-plugin-zoom
gives us a version which does not have these callbacks in the source code.
What’s in the source code on your repo at doPan method
What’s in the source code on a freshly npm install at doPan method
Package version
“chartjs-plugin-zoom”: “^0.6.5”
Maybe you forgot to increment to version and update the npm package.
For now a quick fix would be to use directly the master branch using
npm install --save https://github.com/chartjs/chartjs-plugin-zoom#master
Thanks for your help 😃
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
npm-version
npm -version. Bump a package version. Select CLI Version: Version 8.19.3 (Legacy Release).
Read more >npm - a JavaScript package manager
a package manager for JavaScript. Latest version: 9.2.0, last published: 23 days ago. Start using npm in your project by running `npm i...
Read more >npm-version
npm -version. Bump a package version. Select CLI Version: Version 6.14.18 (Legacy Release).
Read more >Try the latest stable version of npm
See what version of npm you're running · Upgrading on *nix (OSX, Linux, etc.) · Upgrading on Windows.
Read more >About npm CLI versions
The latest release of npm is the most recent stable version. When you install Node.js, npm is automatically installed. However, npm is released...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I released 0.6.6
@mlangwell that’s handy, I didn’t know that. FWIW I made a PR which adds chartInstance (and some other args) to the onZoom onPan functions https://github.com/chartjs/chartjs-plugin-zoom/pull/178/files