apache / apache/echarts

[Bug] DataZoom: Slider is not showing what really is in linechart

Open
#21,018 1 comment 0 reactions 0 assignees View on GitHub
bug en pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.6.0

### Link to Minimal Reproduction

https://codesandbox.io/p/sandbox/elated-haibt-6l9rcx

### Steps to Reproduce

Just check the differences between line in the chart (which never reaches the left) and in the DataZoom slider where the line always starts at the most left point.
The xAxis min is set to 40 seconds away from max.

### Current Behavior

![Image](https://github.com/user-attachments/assets/eac8bf51-9763-4d30-89e8-99e5d145d601)

### Expected Behavior

DataZoom Slider should display what is in the chart not from the beginning of the series.

### Environment

```markdown
- OS: Windows 10/11
- Browser: Edge
- Framework: echarts: 5.6.0
```

### Any additional comments?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.