Skip to content

[Bug] Panning on chart with zoom/scroll bars is jumpy #21265

Open

Description

Version

6.0.0

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=scatter-nebula

Steps to Reproduce

Repro steps:

Current Behavior

The Y-axis jumps to a different range than I originally was zoomed into. On this example chart it is not that much of a jump, but on sometimes the jump can be quite large and even jump outside of the possible Y-axis range! I also see this on custom charts.

Expected Behavior

The panning works the same as if I were to use the scroll bars

Environment

- OS: macOS 15.5
- Browser: Arc
- Framework: Your examples websites

Any additional comments?

No response

Activity

  1. added
    en
    pending
    on Sep 15, 2025
  2. helgasoft commented on Sep 15, 2025

    @helgasoft

    not-a-bug.
    When using the toolbox zoom, the cursor changes from a hand to a cross and enters zoom-in mode. After the first zoom-in it remains a cross which means you may continue to zoom in, not pan. To disable zoom-in mode, press on the toolbox icon again and the cursor will turn into a hand icon. Then you can pan the zoomed view.

    Example - zoom-in around the red point and practice pan.

  3. StijnWillemse-Ontoforce commented on Sep 18, 2025

    @StijnWillemse-Ontoforce
    Author

    I'm not using the zoom functionality. I am just panning horizontally and sometimes (not sure what the trigger is) is jumps vertically. I have a screen recording attached that shows the issue around your red dot. All I do with my mouse is click and drag to pan horizontally. So the canvas shouldn't jump vertically.

    Screen.Recording.2025-09-18.at.09.08.41.mov
  4. helgasoft commented on Sep 18, 2025

    @helgasoft

    Zoom is needed first, otherwise pan would not work at all.
    I agree that there is a bug 🐛 with inside dataZoom pan. I can confirm the "jumps".
    Here is a pre-zoomed (faster loading) chart where the effect is reproducible - Demo.

  5. StijnWillemse-Ontoforce commented on Sep 19, 2025

    @StijnWillemse-Ontoforce
    Author

    Yes this is closer to what we are experiencing in our specific set up. With the data points you are looking at jumping completely out of frame. For a few of our use cases, users have to zoom in quite a bit which seems to exacerbate the problem. Thank you for sparing with me and confirming it is indeed a bug in ECharts and not an issue on our side. 🤝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenpending

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions