`plotly_selected` is not triggered on selection changes because of legend events
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
Hello!
I am trying to perform lasso selection and want to show the number of points selected in the UI.
I can get the details of the points from plotly_selected event. But When I click on any legends that have associated points in the lasso region, then obviously the selection changes, but plotly_selected event is not triggered.
I have replicated this behavior in the codepen.
Please share your thoughts on this.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodePen reproduction and trace how legend clicks alter lasso selection and dispatch Plotly events. Identify the relevant legend and selection event entry points, then verify that changing selection through a legend produces the expected plotly_selected notification without breaking existing selection behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100