Skip to content

[Bug] DataZoom x-range missmatch #18789

@martingrumbt

Description

@martingrumbt

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
x_range_data_zoom_single

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions