Skip to content

Selection by click #2143

Closed
Closed
@chriddyp

Description

@chriddyp

In #1848 (Persistent, stateful hover, click, and selection properties), I mention that it would be helpful to have "persistent click".

We discussed this in person in MTL a few weeks ago and realized that "persistent click" is really "clicking should add points to the persistent selectedPoints state".

This way of selecting data by clicking is common in the other crossfiltering tools like Tableau. Dash users are already working on workarounds to make this possible (https://community.plot.ly/t/solution-persistent-click-events/6590)

Interactions include:
1 - Clicking on a point makes it selected
2 - Clicking on second point adds it to the selected points, keeps the previous point
3 - Clicking on an already selected point removes it
4 - Does this only work if lasso and box-select are selected or is this the default behaviour?

2 is a little different than how tableau seems to work. In tableau, if you click on a second point, it deselects the first point, only allowing you to select one point at a time.

click-selection-points

I suppose that this could be configurable (clickselectmode: 'single | append | exclude) down the road.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions