[Feature] limit the movement boundary of the brush box
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.
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
brush: {
min: xxx,
max: xxx,
}
I need this feature too, especially when using 'lineX' brush.
I've just encountered this problem too. I'd try to make a workaround by detecting when brush border is near the edge, but I don't see a way to get a chart (not a container) width.