chartjs / chartjs/chartjs-plugin-zoom

Pan not working in chartjs-plugin-zoom

Open
#940 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
623
Forks
331
Avg merge
7h 5m
Merged PRs (30d)
7

Description

Hi,
I’m using Chart.js v4.4.3 with chartjs-plugin-zoom and I can’t get the pan feature to work. The zoom (with mouse wheel) works perfectly, but pan doesn’t do anything — even though it’s enabled and configured.

I’ve tested multiple combinations of versions (including plugin v2.0.0, 2.2.0, and latest), used both CDN and local copies, and
tried different browsers and systems.

Here’s a minimal example to reproduce the issue:
No errors are shown in the console, but the onPan callback is never triggered.
Any suggestions on what might be missing or misconfigured?
Thanks in advance!

[chartjs-plugin-zoom.html.zip](https://github.com/user-attachments/files/21097547/chartjs-plugin-zoom.html.zip)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.