[Bug] Inconsistent zoom behavior on chart
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### 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.
https://github.com/user-attachments/assets/e87bc79c-66d6-4465-aae1-a626ca8c9231
### 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
```markdown
- 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.
Contributor guide
Assessment
This issue has not been assessed yet.