question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On 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

image

What’s in the source code on a freshly npm install at doPan method

image

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
benmccanncommented, Nov 20, 2018

I released 0.6.6

0reactions
Techn1xcommented, Nov 27, 2018

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found