-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
selectedData does not update on deselection #97
selectedData does not update on deselection #97
Comments
Seems like this is a bug 👍 . Thanks for reporting! Will work on a fix this week. |
@pmbaumgartner - Returning
or
I think that |
It looks like plotly.js doesn't distinguish between "single-click" and "double-click to remove selection box" in the |
Actually, I don't think this makes sense. The Dash developer needs to know if there is a persistent selection box or not. If there is a persistent selection box but no data, then the data structure will be Maybe reset to This is actually sort of related to plotly/plotly.js#1848 |
re: return value - I think it depends on what you want the pattern to be for when data is selected to crossfilter. A change that would be consistent with the pattern of The other pattern is |
fixes plotly/dash#97 but depends on plotly/plotly.js#1911 getting fixed
Fix here: plotly/dash-core-components#40 |
Fixed! see plotly/dash-core-components#40. Upgrade with |
@chriddyp not sure if this is related to the change, but I'm getting |
Yeah, forgot to update the CDN 🤦♂️ Updated now, should be good to go. Thanks for reporting! |
fixes plotly#97 but depends on plotly/plotly.js#1911 getting fixed
Companion to PR plotly#96 -- forgot to regen
Companion to PR plotly#96 -- forgot to regen
Companion to PR #96 -- forgot to regen
selectedData
does not update when data that is selected through the lasso or rectangular selection tool is deselected. You can view this behavior from the crossfiltering example in the docs: https://plot.ly/dash/getting-started-part-2#basic-interactionsThis has an impact on building dashboards that use crossfiltering to summarize information for a set of points. For example, I have a chart that by default aggregates information for all points in a scatterplot if
selectedData
is empty. OnceselectedData
is not empty, the aggregating charts then summarize info for the selected data. If I deselect points, I want the charts to return to aggregating for all data points. Currently, in order to get this behavior, I would have to reselect all points in the plot with the select tools.Replication:
I have also asked on the community forums if this is the expected behavior.
The text was updated successfully, but these errors were encountered: