Skip to content

Support for making multiple selections using Box selector or Lasso selector tools in Plotly.js #698

Closed
@juni-green

Description

@juni-green

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!

Activity

etpinard

etpinard commented on Jun 28, 2016

@etpinard
Contributor

Is there any way to handle multiple selections simultaneously i.e. without cancelling the previous selection

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

adamjosephjensen commented on Aug 15, 2016

@adamjosephjensen

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

drcrook1 commented on Aug 21, 2016

@drcrook1

I could really use this functionality as well. We use plotly for annotating various charts and many need multiple annotations.

etpinard

etpinard commented on Jun 16, 2017

@etpinard
Contributor
etpinard

etpinard commented on Jun 22, 2017

@etpinard
Contributor
etpinard

etpinard commented on Jun 22, 2017

@etpinard
Contributor
dy

dy commented on Jun 26, 2017

@dy
Contributor

Here is work in progress:

screen

Things to do:

  • merge polygons
    make proper shift interaction
    cover scattergl case
    add multibox selection
    fix selection hover for scattergl
    panning an axis resets selection
    enable box/lasso selection
    highlight selection before entering the selection mode
etpinard

etpinard commented on Jun 26, 2017

@etpinard
Contributor

Awesome @dfcreative 🎉

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.

Thoughts?

dy

dy commented on Jul 4, 2017

@dy
Contributor

Progress so far

multisel

etpinard

etpinard commented on Nov 13, 2017

@etpinard
Contributor

Done via @dfcreative 's #2140

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dy@drcrook1@etpinard@adamjosephjensen@juni-green

        Issue actions

          Support for making multiple selections using Box selector or Lasso selector tools in Plotly.js · Issue #698 · plotly/plotly.js