-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Lasso and select-box support for traces other than scatter marker and scatter text #170
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
Comments
Top ones for crossfilter project:
|
For bar chart and histogram selection, I think just touching a bar should include it in a selection. Thoughts @cpsievert based on plotly.js selections in Shiny apps? |
For the record, I'd vote for having to select 1/2 of the bar's area. Not a strong opinion though. |
I am anxious to get this feature working and would be willing to help implement it. |
Yea, we can already link views in this way via the R package (via click or hover):
R users can leverage most common plotly.js events (e.g., ,
No strong opinion here either, but I think I'd prefer that we force selection of the entire bar. One reason being that you could imagine a system where you could partially select a bar that represented multiple observations |
@morganh35 We'll be rolling out lasso or box select for the rest of Plotly.js trace types over the next few months. If you need this feature for a project at your workplace, we'd love to hear from you |
@monfera The difference between initiating a crossfilter and responding to a crossfilter is a really good point. For the customer project we've been working on, I confirmed today that only choropleths and geoscatter need to initiate crossfilter (in addition to what we already have already - |
|
How would that work? |
If that event and event data is already accessible through a separate event than |
At the moment, there's a |
For clarifaction (I submitted the issue) - yes, I was hoping to be able to use the selection bars on a parcoords plot to control which data is plotted on a separate scatter plot (so I can plot two dimensions against each other while interactively eliminating/focusing on other dimensions). For me it would make sense if the event data was a list of indices into the plotted data. Equally (if it's internally easier to do) I could take the raw highlighted ranges and use them to filter the data myself in a callback function. |
@slishak if the need is urgent, maybe you could subscribe to the
Would this work? |
Yes, this approach would work well for me (having access to the actual ranges is just as useful as the "selected" indices, if not more so). However, I'm not sure how to accomplish this from within Dash/Python. It's not too urgent as I can fall back on multiple RangeSlider components for now, but the parcoords approach is certainly neater. |
Is someone working on enabling |
@tenshis not currently - it would be great if you could work on this! |
@tenshis Here's a mock for how we were considering Essentially if you lasso the centroid of the cell, the entire cell highlights as "selected." |
@etpinard @jackparmer Since this feature isn't yet available. Is there a way to stylize heatmap cells individually? Like ability to specify the color of a certain cell, or add a marker line for a cell? |
@etpinard is this supported for pie charts? Dont see it in the code myself but cant say I fully understand the plotly code base either. Could you please help point me in the right direction on how to get select events working on a pie chart. Thanks |
I am interested to work on this. How to participate to work on this issue? |
@alexcjohnson this seems to be related to adding selection to |
Let's keep the discussion here for now. Looking at @jackparmer's comment #170 (comment) the only remaining items are heatmap and line - is that right or is there anything else people would like add selections to? I'm not sure what this would look like for lines so for now I'm just going to talk about heatmaps. I think what will be needed is:
plotly.js/src/traces/heatmap/hover.js Line 115 in 5b8b1db
|
Don't know if this sufficient for what is needed, but this was my workaround for using lasso tool on heatmaps. Would be really nice to have this work without having to plot twice. |
This issue has been tagged with A community PR for this feature would certainly be welcome, but our experience is deeper features like this are difficult to complete without the Plotly maintainers leading the effort. Sponsorship range: $10k-$15k What Sponsorship includes:
Please include the link to this issue when contacting us to discuss. |
densitymapbox -> scattermapbox to use box selection (plotly/plotly.js#170)
Funny thing is that you can force the selection box modebar button on even in pure scatter traces (without markers and text), and it works pretty much perfectly fine. However, it's still spamming errors in the console and the selection is not retained on Plotly.react calls. Other than that I couldn't see any real differences to normal use. |
Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson |
Lasso and select-box were added in #154
Adding support for other trace types should be as easy as adding a
selectPoints
to the other trace modules.The text was updated successfully, but these errors were encountered: