apache / apache/echarts

[Bug] Cannot zoom out to see all categories by scrolling mouse wheel in chart with category axis

Open
#21,541 1 comment 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

The latest version. Because I can reproduce it in the eCharts editor.

### Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=lVM9T8MwEN2R-A-3ZWHgewhiYGSokACBBOrgNtdykuurbKc0VP3vnO04SUMXssR3effeuzuH157YwD3sTk8AKuXVB_OqhM8QAuxgQdqjnXCFJRQpKM7AN-sQk3FUocTbhy25R1PhVkrPp7A_-199M64P5dNE4pn1jOVDtAjgvvi7BG9rbEUWqHxtha8FDPvoUsJzoJnz2WkqeiMU7h1YVNWT0U0JC6UdDlArtaT5a6TatZSfhSYTuihmyhZ98yA0znN01uec2uCDexSemE_p-EqYOMqevJgrj0u2jfAHh0FuwiaovdZR9B2rGH3VnXYc54Bjo7RgO2MbcrXSE7Xu5pO12HgyNdeuaKErMiWc50DJFm7bQOPCl3CRv5F5Via21E8cYM6abbBsk0m2ARRODWrN3-G0tIixn1kwKW8yFS05nDbEGn0x7SkHg3JoCaXLfFW7ATerGesX-hEzl9leWm8HDk-e40V7z9pkmurlYTIhr44hr48hb44hbw-TaW9jddniH_WEHKtH5Eg9IcfqERnVc7oHtJt3cs3Crzm4jjL1_d0v&enc=deflate

### Steps to Reproduce

1. Zoom into two categories by using zoom in the toolbox.
2. Scroll mouse wheel to zoom out.
3. Observe that users can zoom out to see all categories.
4. Zoom into a single category by using zoom in the toolbox.
5. Scroll mouse wheel to zoom out.
6. Observe that users cannot zoom out to see all categories, only show the zoomed category at step 4.

### Current Behavior

User cannot zoom out to see all categories by scrolling mouse wheel when using data zoom from toolbox to zoom in a single category

### Expected Behavior

User should be able to zoom out to see all categories by scrolling mouse wheel when using data zoom from toolbox to zoom in a single category

### Environment

```markdown
- OS: Windows 11 Enterprise
- Browser: Google Chrome Version 145.0.7632.160
- Framework: eCharts Editor https://echarts.apache.org/examples/en/editor.html?c=line-simple&code=lVM9T8MwEN2R-A-3ZWHgewhiYGSokACBBOrgNtdykuurbKc0VP3vnO04SUMXssR3effeuzuH157YwD3sTk8AKuXVB_OqhM8QAuxgQdqjnXCFJRQpKM7AN-sQk3FUocTbhy25R1PhVkrPp7A_-199M64P5dNE4pn1jOVDtAjgvvi7BG9rbEUWqHxtha8FDPvoUsJzoJnz2WkqeiMU7h1YVNWT0U0JC6UdDlArtaT5a6TatZSfhSYTuihmyhZ98yA0znN01uec2uCDexSemE_p-EqYOMqevJgrj0u2jfAHh0FuwiaovdZR9B2rGH3VnXYc54Bjo7RgO2MbcrXSE7Xu5pO12HgyNdeuaKErMiWc50DJFm7bQOPCl3CRv5F5Via21E8cYM6abbBsk0m2ARRODWrN3-G0tIixn1kwKW8yFS05nDbEGn0x7SkHg3JoCaXLfFW7ATerGesX-hEzl9leWm8HDk-e40V7z9pkmurlYTIhr44hr48hb44hbw-TaW9jddniH_WEHKtH5Eg9IcfqERnVc7oHtJt3cs3Crzm4jjL1_d0v&enc=deflate
```

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