apache / apache/echarts

[Bug] Zooming Y Axes controlled by one dataZoom component when using DataZoom Toolbox feature

Open
#20,120 8 comments 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.5.1

### Link to Minimal Reproduction

https://codesandbox.io/s/9fdg8f

### Steps to Reproduce

1. Open the [link ](https://codesandbox.io/s/9fdg8f) to minimal reproduction;
2. Click on DataZoom feature at Toolbox;
3. Drag to zoom some chart area.

The gif bellow shows the steps
![zoom-bug](https://github.com/apache/echarts/assets/16216886/816775a2-4c35-4d10-88c4-f41b10a1b40b)

### Current Behavior

The zoom not correspond the area selected. It happens only when multiple Y Axis is configured to be controlled by one DataZoom Component and when it's using the Toolbox DataZoom feature.
If the zoom is done using the DataZoom Component or the mouse scroll the behavior is as expected.

### Expected Behavior

The zoom should correspond the area selected considering that the chart has multiple Y Axis and one DataZoom Component controls both y axes.
The behavior expected is equal to using the DataZoom Component to zoom or the mouse scroll. Both cases the zoom works on both y axes.

### Environment

```markdown
- OS: Windows 10
- Browser: Chrome 125.0.6422.142 (64-bit)
- Framework: JavaScript
```

### Any additional comments?

_No response_

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.