Uh oh!
There was an error while loading. Please reload this page.
feat(brush): support brush selection on line series - #19193
Conversation
Thanks for your contribution! |
Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the |
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-19193@632e106 |
yongesen
commented
Dec 8, 2023
Hello, how can I use it in JavaScript. |
VladSolyony
commented
Dec 26, 2023
Hi! I need this option |
spuyet
commented
Jan 17, 2024
chadallera1993
commented
Feb 5, 2024
Ovilia
commented
Feb 5, 2024
![]() I think lines should also be gray when out of range. This PR only makes item gray. @alxnddr Please update the implement to make sure the lines are also working as expected. |
iago-f-s-e
commented
Mar 12, 2024
That's the PR I need at the moment |
kateEcobb
commented
Oct 23, 2024
I have a branch open with these changes and I've added a test -- if you can point me in the right direction of where to set the line color (I have a hunch I need to use a rectangular selection in the |
HJK181
commented
Nov 20, 2024
@Ovilia any update on this? |
milly01-coder
commented
Mar 12, 2025
Hi @iago-f-s-e, since it looks like the PR is no longer up to date, I wanted to ask if you have found a workaround to get the selected data. Thanks for the help |

Brief Information
This pull request is in the type of:
What does this PR do?
This PR adds the support brushing selection to
lineseries. Previously,This pull requests adds
brushSelectorto the LineSeriesFixed issues
Details
Before: What was the problem?
brushselectedevent returned an emptydataIndexarray which makes it hard to figure out which points are selected with brushing.After: How does it behave after the fixing?
LineSeriesModelimplementsbrushSelectormethod where it gets point coordinates bydataIndexand then uses brush selector to understand if the point should be selected.Document Info
One of the following should be checked.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information