-
Notifications
You must be signed in to change notification settings - Fork 627
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
Send 'plotly_click' and 'plotly_selected' events to shiny when in shinyMode #416
Conversation
Nice! ping @alexcjohnson re "plotly_doubleClick" event ^^^ |
@cpsievert adding a doubleclick emitter would be a 2-line patch. The only thing we need to discuss, is what the The same as the old selection, an empty object, or something else? |
@etpinard I don't think I have a preference for |
+1 from me too for plotly_doubleClick. Would be really great to have. Only reason why I'm occasionally using ggplot in Shiny apps. |
on dragbox double clicks and select/lasso double clicks
…into feature/transmit
…into feature/transmit
Hey @cpsievert , is it still possible to get |
A few other folks are already trying to hack access to the hover events: |
Send 'plotly_click' and 'plotly_selected' events to shiny when in shinyMode
Nice!!! |
🎉 🎉 🎉 |
Is there any possibility of getting plotly click event data for the white space? Would be useful in making something where the user can click to add data points. |
@chriddyp @jp @cldougl
I talked to @jcheng5 today. He suggested that we don't yet rely on crosstalk, as it's still very experimental, and may never be officially supported.
Later I realized that, in #312, crosstalk is only used to send plotly event data to the shiny server. It turns out that isn't super hard to implement using shiny alone, so I've done that here.
Here is a barebones example (source)
To see how the interface for accessing plotly user event data has changed for those older examples, see cpsievert/apps@5633b6e (ignore the inline stuff, cc @pssguy)
A few things left to sort through: