apache / apache/echarts

[Bug] Truncated Data Label in Datazoom component

Open
#18,443 3 comments 2 reactions 0 assignees View on GitHub
en support topic: dataZoom waiting-for: author
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version

5.3.2

### Link to Minimal Reproduction

https://codesandbox.io/s/xvivf1?file=/index.js

### Steps to Reproduce

add datazoom-slider to a chart

### Current Behavior

Data label is truncated when there's no enough space
![image](https://user-images.githubusercontent.com/30250211/228445989-b062a1b5-7c90-43f5-868f-bec13f1189ef.png)

### Expected Behavior

Data labels should be shown adaptively. When there's no enough space to the left of the handle, the data label should be shown on the right, and vice versa, just like the pic below.
![image](https://user-images.githubusercontent.com/30250211/228447654-6eeefa0f-69f6-4ab8-9742-a732ec15dd95.png)

### Environment

```markdown
- OS:win 11
- Browser: chrome 111.0.5563.111
```

### 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.