Skip to content

[Bug] dataZoom detail shape is not the same as data with value axis #17141

Open

Description

@Ovilia

Version

5.2.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=line-simple&code=PYBwLglsB2AEC8sDeAoWsAeBBDEDOAXMmurGAJ4gCmRA5AG4CGANgK5W0kC-ANCeTnxFUpMpRqwGLdp3S8SeKgCcIVQrADaJdCNGwAJozCMiWvaQ0BGAEw9YAZgC6fc-isBWO-4AMz7Xo1rbzt7XxdXK29g2B9Hf3Q_cwpqOmYIaA5_LhJEgyNGAC1gYABbYX88YyUwADVpCSDuFC4AbiA

Steps to Reproduce

option = {
  xAxis: {
    type: 'value'
  },
  yAxis: {
    type: 'value'
  },
  series: [
    {
      data: [
        [12, 3],
        [15, 50],
        [20, 30],
        [100, 50]
      ],
      type: 'line'
    }
  ],
  dataZoom: {
    startValue: 20
  }
};

image

Current Behavior

The detail view in the dataZoom is not the same as the data in range. You can see that the max value is still in the detail view of the dataZoom (wrong) but not in the chart visible area (correct).

Expected Behavior

The detail view should be the same as the chart area.

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

Similar problems exists when data is not in the ascending order in xAxis (e.g., [100, 10], [50, 20]).

Activity

  1. added
    en
    on Jun 1, 2022
  2. tyn1998 commented on Jun 1, 2022

    @tyn1998
    Contributor

    It seems that the detail view of dataZoom is evenly divided by 4, which is equal to series.data.length.

    image

  3. Ovilia commented on Jun 1, 2022

    @Ovilia
    ContributorAuthor

    I'm fixing this. :) @tyn1998

  4. self-assigned this
    on Jun 1, 2022
  5. changed the title [-][Bug] dataZoom detail shape is not the same as data[/-] [+][Bug] dataZoom detail shape is not the same as data with value axis[/+] on Jun 1, 2022
  6. MrCatEsq commented on Jun 24, 2022

    @MrCatEsq

    I'm fixing this. :)

    @Ovilia, does this issue partially overlap my old issue 17122?

  7. peer-kkang commented on Aug 22, 2023

    @peer-kkang

    Any update on this?

  8. RafaelFaria98 commented on Feb 19, 2024

    @RafaelFaria98

    Any updates on this? I'm facing the same issue

  9. github-actions commented on Feb 18, 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.

  10. added
    stale
    on Feb 18, 2026
  11. ptulou commented on Feb 19, 2026

    @ptulou

    But it has a fix in progress... can that move forward?

  12. removed
    stale
    on Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugentopic: dataZoom

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions