apache / apache/echarts

[Feature] limit the movement boundary of the brush box

Open
#19,895 2 comments 2 reactions 0 assignees View on GitHub
en new-feature pending
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

https://github.com/apache/echarts/assets/72436165/6a4b673d-7e97-40ac-8b4c-9749699b2813

[This is an demo from the official website.](https://echarts.apache.org/examples/zh/editor.html?c=bar-brush)

I want to prevent the brush box from flowing out of the container, but I can't find the appropriate configuration option. Is it not implemented yet? (any reply would be appreciated!!!)

### What does the proposed API look like?

The chart limits the movement of the brush box based on the max and min on the x and y axes.
or like this
```js
brush: {
min: xxx,
max: xxx,
}
```

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.