Skip to content

Pan not working in chartjs-plugin-zoom #940

@pepe12311

Description

@pepe12311

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions