apache / apache/echarts

Last selected bars switch back to outOfBrush style after being hovered

Open
#14,646 2 comments 2 reactions 0 assignees View on GitHub
bug en topic: brush
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### Version
5.0.2

### Steps to reproduce
- Go to https://echarts.apache.org/examples/en/editor.html?c=bar-brush
- Comment out line 83 where we set options to the chart on the 'brushSelected' event
- Put tooltip trigger option to axis: tooltip: {trigger:'axis'}
- Enable the horizontal brush selection by clicking on the toolbox
- Select some bars with the brush
- Quickly hover over the selected bars with your mouse

### What is expected?
All bars should remains in the 'inBrush' style

### What is actually happening?
The last selected bars are put in the 'outOfBrush' style

![Screen Recording 2021-04-12 at 11 28 02](https://user-images.githubusercontent.com/25326755/114373118-90a94c00-9b82-11eb-9c33-7612b8b07620.gif)

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.