Skip to content

[Bug] DataZoom position bugs when series data only one #21245

@hks2002

Description

@hks2002

Version

6.0.0

Link to Minimal Reproduction

https://echarts.apache.org/examples

Steps to Reproduce

past this option in the samples page:

option = {
  xAxis: {
    type: 'time',
    data: ['2025-01-01']
  },
  yAxis: {
    type: 'value'
  },
  dataZoom:[{
        type: 'slider',
        height: 15,
        bottom: '5px',
        start: 0,
        end: 100,
        xAxisIndex: [0]
      }],
  series: [
    {
      data: [150],
      type: 'line'
    }
  ]
};

Current Behavior

Image Image

Expected Behavior

Image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugenThis issue is in EnglishpendingWe are not sure about whether this is a bug/new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions