You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support for making multiple selections using Box selector or Lasso selector tools in Plotly.js #698
Hi,
Is there any way to handle multiple selections simultaneously i.e. without cancelling the previous selection? Currently, when the Box select cursor is selected (from the modebar) and box selection is applied, the previously selected part of the graph gets deselected and the box re-appears for the newly selected part. I was just wondering if we can select new data points on the graph without deselecting the previous ones.
Any help will be appreciated.
Thanks!
Reacted by David Estrada, Thomas Stoeger and Hyrum Dickinson
A great thing to do would be to enable pressing shift+selection to add to the current selection (keeping selection without pressing the shift key working as-is).
We should also discuss what should happen to the plotly_selected event data during multiple selections.
I'd vote for emit a plotly_selected event after every selection stroke is completed and making the points array include points for all selected currently visible.
Activity
etpinard commentedon Jun 28, 2016
Not at the moment.
This is a limitation of the current implementation. See PR #154 for more information.
That said, what you describe would be a great addition to the library.
adamjosephjensen commentedon Aug 15, 2016
This would be awesome!
A great thing to do would be to enable pressing shift+selection to add to the current selection (keeping selection without pressing the shift key working as-is).
drcrook1 commentedon Aug 21, 2016
I could really use this functionality as well. We use plotly for annotating various charts and many need multiple annotations.
etpinard commentedon Jun 16, 2017
cc @dfcreative @chriddyp @jackwluo
etpinard commentedon Jun 22, 2017
@dfcreative
etpinard commentedon Jun 22, 2017
@dfcreative
dy commentedon Jun 26, 2017
Here is work in progress:
Things to do:
etpinard commentedon Jun 26, 2017
Awesome @dfcreative 🎉
We should also discuss what should happen to the
plotly_selectedevent data during multiple selections.I'd vote for emit a
plotly_selectedevent after every selection stroke is completed and making thepointsarray include points for all selected currently visible.Thoughts?
dy commentedon Jul 4, 2017
Progress so far
etpinard commentedon Nov 13, 2017
Done via @dfcreative 's #2140