apache / apache/echarts

[Feature] dataZoom component add an option to disable downsampling

Open
#20,182 3 comments 0 reactions 0 assignees View on GitHub
en enhancement topic: dataZoom topic: line
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

I find that dataZoom always do a downsampling, but the result may not always accurate.

The container div of my chart is resizable. When I resize it, the dataZoom will change. See pictures below:

![image](https://github.com/user-attachments/assets/ea739db8-777b-4db3-b1b0-a2d370bca5fb)
![image](https://github.com/user-attachments/assets/4432d309-7db9-4535-a797-81e3f4e53317)
![image](https://github.com/user-attachments/assets/e2a57787-ebda-4cc1-a3eb-5254f9ced40e)

When the chart width grows, the dataZoom switch between two different patterns.

This could be confusing for my users. I assume this is caused by the downsampling algo. So I would like to have a option to toggle the downsampling.

### What does the proposed API look like?

Add an option to toggle dataZoom downsampling.

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.