-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
addTraces upon plotly_selected event with scattergl not rendering correctly #2298
Comments
@etpinard |
What does the svg |
Should be fixed with #2311 |
I modified the example slightly so the red marker should be placed directly on top of the blue marker, but again, the red marker isn't rendered. May seem like a silly bug, but I need this fixed before I can update the R package... |
@cpsievert #2367 fixes that. Ultimately we have to choose one way or another. Selected points are a separate layer, we cannot mix them into main points layer to make per-point layering, since that will significantly reduce performance. |
I prefer the behavior on @cpsievert here's one way to ensure that the red marker (from the new trace added by |
@etpinard populating |
yes. |
Looks like this is actually the issue to #2433 and https://community.plot.ly/t/webgl-context-lost-after-updating-10-times/8581/8?u=chriddyp. However, we're using In Dash, we were recommending that users replot their data after selection to customize selection styles. This no longer works since the second trace (with identical points as the first trace) now appears below the first trace that was originally plotted and selected. Here is a simple example: https://codepen.io/chriddyp/pen/YebmJL?editors=1010. Selecting the point used to display the second trace with the orange point on it, now it persists the first trace on top of it. I can't necessarily use the |
One way to work around this issue would be to "turn off" the selected/unselected api when a relevant event is triggered. More specifically, I'm thinking on a Plotly.restyle(gd, {"selectedpoints": null}) before adding a trace. However, it seems Happy to open another issue about |
Thanks for the report @cpsievert
|
Thanks for your work on this issue. Do you happen to have an idea of when the fix will be released? |
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. |
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 |
https://codepen.io/cpsievert/pen/MrMMvj
Brush the blue marker. A red marker should appear at (1, 2), but it seems to be transparent.
cc @dfcreative
The text was updated successfully, but these errors were encountered: