apache / apache/echarts

[Bug] Connected Charts Zoom & Zoom reset behaviors are not consistent

Open
#18,735 5 comments 0 reactions 0 assignees View on GitHub
bug en topic: dataZoom
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.4.2

### Link to Minimal Reproduction

https://codepen.io/ragava28/pen/dyQPZNb?editors=0010

### Steps to Reproduce

[https://codepen.io/ragava28/pen/dyQPZNb?editors=0010](url)

1. Click on zoom button from toolbox in any chart.
2. Which enables zoom in all connected charts , so users can zoom from any connected chart.
3. After zooming , Zoom reset button gets enabled, but only from the chart in which user performed zoom in operation.
4. It should also get enabled for all the connected charts .

Any suggestions to enable zoom reset for all the connected charts

### Current Behavior

Zoom reset button gets enabled, but only from the chart in which user performed zoom in operation.

### Expected Behavior

Zoom reset button should get enabled for all connected charts .

### Environment

```markdown
- OS:
- Browser:
- Framework:
```

### Any additional comments?

![image](https://github.com/apache/echarts/assets/14935973/e684bebd-f8d8-43fc-9784-2ae75ff7715b)

We have connected charts as shown in above screen shot , in which each row is a line chart connected in x-axis, and we are hiding zoom & zoom reset for all other charts except 1st row.

As all are connected charts , user clicks on zoom button in 1st row chart from tool box, and he can zoom from any connected chart (like 2nd ,3rd ..etc.) , but zoom reset is working only from the chart which user has zoomed .

Any way to enable zoom reset on all charts. Any suggestion is well appreciated

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.