apache / apache/echarts

[Bug] Emphasis state not cleared properly with zlevel and dataZoom, causing residual highlights

Open
#21,131 1 comment 0 reactions 0 assignees View on GitHub
bug
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://stackblitz.com/edit/vitejs-vite-o5njrr4h

### Steps to Reproduce

https://github.com/user-attachments/assets/1600eb5a-1006-4d2b-89d6-711d8d5dad76

https://github.com/user-attachments/assets/8ed9e16f-f401-4669-8ab5-917178e006ad

### Current Behavior

1. When a series has a custom zlevel, moving the mouse into the chart area can cause a residual emphasis effect to remain visible on some elements, even after the mouse has moved away.

2. When zooming using dataZoom and simultaneously moving the mouse, a large number of elements can retain their emphasis state, resulting in many incorrect highlights.

### Expected Behavior

The emphasis state should be cleared correctly.

### Environment

```markdown

```

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