apache / apache/echarts

[Bug] CustomView emphasis.hoverLayer not control by hoverLayerThreshold

Open
#20,849 0 comments 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.5.1

### Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?c=flame-graph

### Steps to Reproduce

Based on the official flame graph demo, using a large amount of data (more than 5000).

### Current Behavior

When hovering the mouse over a block, the text in the flame graph is blocked, and hoverLayerThreshold cannot be used to control whether a separate hover layer is enabled.

### Expected Behavior

When hovering the mouse over a block, the text in the flame graph displays correctly, or hoverLayerThreshold can be used to control whether a separate hover layer is enabled.

### Environment

```markdown
- OS: Macos
- Browser: Chrome
- Framework:
```

### Any additional comments?

after debugger, this code set `emphasis.hover = true` when use a large amount of data .

![Image](https://github.com/user-attachments/assets/b423b6cd-928a-410c-a73d-02254dba7da1)

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.