Skip to content

[Bug] dataZoom current data shadow line does not match with series line #19930

Closed as not planned

Description

@stpeyyee

Version

^5.1.1

Link to Minimal Reproduction

Steps to Reproduce

Example options

options = {
  xAxis: [
    {
      type: "time",
    }
  ],
  yAxis: [
    {
      type: "value",
    }
  ],
  dataset: [
    {
      dimension: [
        { name: 'timestamp', type: 'time' },
        { name: 'value', type: 'float' }
      ],
      id: '01',
      source: [
        { value: 854.548, timestamp: Mon Nov 13 2023 22: 40:00 GMT +0700(Indochina Time) },
        { value: 845.63, timestamp: Mon Nov 13 2023 22: 45:00 GMT +0700(Indochina Time) },
        ....
      ]
    }
  ],
  dataZoom: [
    {
      type: "slider",
      xAxisIndex: [0],
      startValue: lhs,
      endValue: rhs,
      filterMode: "none",
      moveHandleSize: 12
    }
  ]
}

Current Behavior

image

Expected Behavior

image
image

Environment

- OS: Windows
- Browser: Google chrome
- Framework: React.js

Any additional comments?

No response

Activity

  1. added
    en
    pending
    on May 13, 2024
  2. helgasoft commented on May 13, 2024

    @helgasoft

    possibly related to #18754

  3. steveswinbank commented on Jun 12, 2024

    @steveswinbank

    +1

    This problem is affecting us as well - where we have a type: 'time' xAxis with variable x-axis gaps between the points we are plotting

  4. pedrosalgadowork commented on Aug 13, 2024

    @pedrosalgadowork

    Same here, for large time series it's very difficult to spot the trend based on the dataZoom line.

  5. helgasoft commented on Aug 13, 2024

    @helgasoft

    large time series

    How large ? Demo with 10K points works fine, gaps and all.

    image

    📌 Please make an effort to provide Minimal Reproduction code.

  6. pedrosalgadowork commented on Aug 28, 2024

    @pedrosalgadowork

    large time series

    How large ? Demo with 10K points works fine, gaps and all.

    image

    📌 Please make an effort to provide Minimal Reproduction code.

    Our use case basically represents a large millisecond timeseries with more than 30k points for a single day.
    Echarts works great to represent this data, our issue is related how the dataZoom feature represent this série, especially where the variance of the data is more noticeable.
    Clearly the downsampling/agg of the serie into this dataZoom mini chart can lead to misinterpretation of where spikes are, and even when the xaxis range is correct in both, we don’t see that data representation in both charts.
    I will share a representative dataset, configs, and screenshots to showcase this situation asap (thanks for the heads up 🙂).

  7. github-actions commented on Aug 28, 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.

  8. added
    stale
    on Aug 28, 2026
  9. github-actions commented on Sep 5, 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