apache / apache/echarts

Bars stay in outOfBrush style after a brush remove on click when tooltip trigger is 'axis'

Open
#14,645 1 comment 4 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
- Remove the brush by clicking on a bar that is not selected and is in the 'outOfBrush' style

### What is expected?
All bars should return to their original color since nothing is selected.

### What is actually happening?
The bar we clicked on to remove the brush selection remains in the 'outOfBrush' style

![Screen Recording 2021-04-12 at 11 24 55](https://user-images.githubusercontent.com/25326755/114372590-05c85180-9b82-11eb-9ba6-ffd434763eba.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.