jamiemac87 commented on issue #18446:
URL: https://github.com/apache/echarts/issues/18446#issuecomment-2252802216
Adding to @Deohgu suggested workaround if you want to clear all selected
ranges/intervals and clear the visual bug without utilising the toolbox brush
feature then you can dispatch the following action:
```typescript
this.chart.dispatchAction({
type: 'axisAreaSelect',
intervals: [],
});
```
However as @Deohgu suggests you still need call `setOption` to remove the
visual bug like so:
```typescript
this.chart.on('axisareaselected', (params) => {
if (!params.intervals.length) {
this.chart.setOption(this.chart.getOption());
return;
}
...
});
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]