apache / apache/echarts

[Feature] Ability to hide overlap in value labels in emphasis state

Open
#19,192 7 comments 4 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.4.3

### Link to Minimal Reproduction

https://jsfiddle.net/s6mr0g8c/1/

### Steps to Reproduce

1. Create a multi-series line chart with many points
2. Set labelLayout to `hideOverlap`
3. Hover over one of the series names in the legend

### Current Behavior

On hovering the legend, labels for all points on the line appear, without any control for overlap

![CleanShot 2023-10-11 at 13 17 56](https://github.com/apache/echarts/assets/12602440/98f740e7-4a74-4126-91f1-adf0bafc8c31)

### Expected Behavior

Labels should stay the same as they are outside of emphasis state (or `hideOverlap` should apply in emphasis state)

### Environment

```markdown
N/A
```

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