feat(brush): support brush selection on line series#19193
feat(brush): support brush selection on line series#19193alxnddr wants to merge 1 commit intoapache:masterfrom
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 |
|
Hello, how can I use it in JavaScript. |
|
Hi! I need this option |
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. |
|
That's the PR I need at the moment |
|
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 |
|
@Ovilia any update on this? |
|
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