Skip to content

Selection by click #2143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
chriddyp opened this issue Nov 3, 2017 · 2 comments
Closed

Selection by click #2143

chriddyp opened this issue Nov 3, 2017 · 2 comments
Milestone

Comments

@chriddyp
Copy link
Member

chriddyp commented Nov 3, 2017

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.

@chriddyp chriddyp added this to the Dash milestone Nov 3, 2017
@etpinard
Copy link
Contributor

etpinard commented Nov 3, 2017

Can we merge this into #1848 ?

#1848 will remain open after #2135

@etpinard
Copy link
Contributor

etpinard commented Nov 13, 2017

Merging into #1848 - selection-related issues are getting a little out-of-hand at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants