Skip to content

[Bug] Datazoom bar in time chart does not accurately reflect chart if data is distributed evenly across time #20374

Closed as not planned

Description

@luukvnes

Version

5.2.2

Link to Minimal Reproduction

https://jsfiddle.net/zecv4mhy/

Steps to Reproduce

  1. Create a time chart that uses DataZoom.
  2. Use time series data that does not have equal size steps between each data point.

Current Behavior

Currently the datazoom bar view is scaled to the points, meaning that the 50th% point is in the middle of the bar, however this is not how the chart itself functions, there the 50th% point in terms of time is in the middle of the chart. Selecting a part of the chart already works as expected, e.g. 90%-100% means that the last 10% of time is shown.

image

Expected Behavior

The data zoom shows the correct line corresponding to the graph (like the basic example below.)
image

Environment

- OS:Linux
- Browser: Chrome
- Framework: -

Any additional comments?

No response

Activity

  1. added
    en
    pending
    on Sep 25, 2024
  2. helgasoft commented on Sep 27, 2024

    @helgasoft

    Minimal Reproduction is not relevant to issue, has no dataZoom...

  3. luukvnes commented on Sep 27, 2024

    @luukvnes
    Author

    Sorry I forgot to save the jsfiddle.
    This is the new version. (I also updated the original text)
    https://jsfiddle.net/zecv4mhy/

  4. helgasoft commented on Sep 27, 2024

    @helgasoft

    duplicate of #19930, also see #18754, #19255, etc.
    The example is very good though. You found the cause of the problem - "time series data that does not have equal size steps between data points"

  5. purpletastes commented on Oct 10, 2024

    @purpletastes

    暗室逢灯

  6. purpletastes commented on Oct 10, 2024

    @purpletastes

    暗室逢灯

    1111

  7. purpletastes commented on Oct 10, 2024

    @purpletastes

    Sorry I forgot to save the jsfiddle. This is the new version. (I also updated the original text) https://jsfiddle.net/zecv4mhy/

  8. github-actions commented on Oct 10, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

  9. added
    stale
    on Oct 10, 2026
  10. github-actions commented on Oct 18, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenpendingstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions