apache / apache/echarts

[Bug] Toolbox DataZoom behaves wrong with multiple axes with different min/max

Open
#20,576 3 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/p/sandbox/vw8p5g

### Steps to Reproduce

I did encounter this bug in my professional work, so I cannot share this context but it is easily explainable via the minimal reproduction.
I have multiple yAxis and want to use the dataZoom in the toolbox. The yAxis have different min/max values set. The dataZoom is not configured specifically, so it controls all y and xAxis per default.

### Current Behavior

Using the dataZoom from the toolbox sets all yAxes to the same start and end value.
This is before the zoom, look at the axes.
![image](https://github.com/user-attachments/assets/a7d19a1e-bd7a-4c21-8034-ed6bffed38fd)
This is after the zoom, again please look at the axes.
![image](https://github.com/user-attachments/assets/58794d6d-e16c-4f58-8cfd-29629eb3595b)

### Expected Behavior

Using the dataZoom from the toolbox should set all yAxes to the correct values. Inspecting the event triggered by the dataZoom reveals, that the event batch carries the correct start and end values for all axes

### Environment

```markdown
I reproduced the example with a CodeSandbox, I do not know which env it utilizes.
- OS:
- Browser:
- Framework:
```

### 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.