apache / apache/echarts

[Bug] DataZoom x-range missmatch

Open
#18,789 3 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://echarts.apache.org/examples/en/editor.html?c=line-simple&code=CYQwLiCMAEC80G0BQ1GQGwA52QKwHYAmABlOJgBpiBdC6FNLHAksw6K2-1BDbPImWIBmDpFJcGvJgNakALBxp0G1ANxJQEdvGQ8-zQWXRLJ-mSyH4xElef6WymU3cYOjpAJwvu0dUiQAewAHMABLQIA7OGgAbwYAGwBTAHMkyOAALjiAXwoGLRAALUDAgFtsvVQ4hmroMABPYKTsgHIAZwSw4CSAJ1b8utR2gAtAgHdssF6AVyTBofaIXrBs4gW69KzocXXa6BzVBYAPAEFjsPbs-LrG5rbwsqTWhjyGBvPL6_27luhWgBuIAScwGrwW7T6YSSV0Q-xuQ0iICebQAyoEZr0AMZJHZgob1Jp_VpdSLPDbVQrZQqQCmoEC9JIgVGNZLXQ51N51BF1JEo_7ozE46CEfFDX5tUnk_aoKnQQqEOnQBlMlkNNm5fYcvz5HJqIA

### Steps to Reproduce

1. Add two series of type `[time, value]` with different ranges of `x/time` values
2. configure `x` axis as `time`
3. add `dataZoom` as slider

### Current Behavior

* dataZoom shows only the x range of the first series
* graph is correct
* e.g. a peak on dataZoom preview is not at the position of the graph
* when second series is hidden, the dataZoom is correct

![x_range_data_zoom](https://github.com/apache/echarts/assets/31829974/2718403d-114a-46a5-b8a4-54cb5ad387f6)
![x_range_data_zoom_single](https://github.com/apache/echarts/assets/31829974/73805ee9-864a-4001-80e0-26681edaa43d)

### Expected Behavior

* dataZoom start and end is set to the min/max over all data
* dataZoom shows a union over all series (nice to have)

### Environment

```markdown
- OS: all
- Browser: all
- Framework: official editor / echarts@5.4.2
```

### Any additional comments?

I ran into this issue while showing a lot of line series with characteristic gaps and peaks, when choosing exact start and end of a peak/gap.

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.