apache / apache/echarts

[Bug] dataZoom feature in toolbox doesn't work when set yAxisIndex to contain only part of y axis

Open
#19,402 5 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.4.3

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?code=PYBwLglsB2AEC8sDeAoWszGAGwEbAA8AuZNdWAMwFMBDMAVwCcqTVzyATOmgLSwFtWZdugCeAQQIQAzgEloHKsVgBtAAwBdYeQC-2veh0AaMgUkyh7MKJAtYAcgDGdKgHNgjUfZPsuYGiQq9gCyMN4OACr0VOH2AOpUHLERABb0sQBijBCxAMp0efTQ9lqGPrASUtKBbOTWtiT2AG402NH2ZMZktej1ds2t7eXoIMDSEJAwjdmuKWAdhhrl0lTZVNWq2j2c3IEAjACsakawAEwAzMdnpwAsJ6d7ABwne-cHLzcA7PcAbJrDdRs_WwEGgMX0AO26D8AVUezUV1OiNOL2esFeJy-Jz-S20vSBjRBYO8eIq5jkCiUJD2-jIWh0AG4gA

### Steps to Reproduce

I have a chart that has two y axis and I want the data zoom tool only zoom data for the first y axis, so I set yAxisIndex to [0].
When I just enable the dataZoom tool in toolbox and drag an area in chart area, nothing happens.
![recording-2023-12-14-15-06-45](https://github.com/apache/echarts/assets/38340178/228919c9-c5ee-44e0-9c97-8cde66f7c466)

### Current Behavior

Data zoom doesn't work and below error is throwed in the console.
![image](https://github.com/apache/echarts/assets/38340178/e84128ff-09e3-4c6b-be06-98771631e152)

### Expected Behavior

Data zoom works for the first y axis.

### Environment

```markdown
- OS: Windows 10 Enterprise
- Browser: Chrome@120.0.6099.110
- Framework: Angular@14
```

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