echarts [Bug] DataZoom x-range missmatch

tyg4sfes  于 5个月前  发布在  Echarts
关注(0)|答案(1)|浏览(98)

Version

5.4.2

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

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.

相关问题