Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Inconsistent zoom behavior on chart #20683

Open
hperronnet opened this issue Jan 13, 2025 · 1 comment
Open

[Bug] Inconsistent zoom behavior on chart #20683

hperronnet opened this issue Jan 13, 2025 · 1 comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.

Comments

@hperronnet
Copy link

Version

5.6.0

Link to Minimal Reproduction

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

Steps to Reproduce

  1. Go to https://echarts.apache.org/examples/en/editor.html?c=scatter-nebula
  2. Zoom inside the chart
  3. Sometimes, the zoom is incoherent

Current Behavior

When zooming in on the chart, the view sometimes changes drastically. This behavior also depends on the position of the mouse on the chart (see video).

In the video, the initial min/max values for the y-axis are -9.13 (min) and 25 (max). After zooming in, the min value becomes -24.08 and the max value is 5. You can also see the grid shift significantly.

zoom-scatter.webm

Expected Behavior

When zooming in on the chart, the view should update proportionally.
The min/max values for the y-axis should adjust dynamically based on the zoom level, but should not result in drastic changes.
The grid should remain consistent and only shift slightly (what currently happens in most cases).

Environment

- OS: Linux
- Browser: Chrome Version 131.0.6778.264
- Framework: None

Any additional comments?

This issue can be fixed be setting filterMode: 'emtpy' but it results in points re-rendering every move, which is not ideal.

@hperronnet hperronnet added the bug label Jan 13, 2025
@echarts-bot echarts-bot bot added en This issue is in English pending We are not sure about whether this is a bug/new feature. labels Jan 13, 2025
@helgasoft
Copy link

see #19857

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug en This issue is in English pending We are not sure about whether this is a bug/new feature.
Projects
None yet
Development

No branches or pull requests

2 participants