powered by
This function must be called within a reactive shiny context.
event_data(event = c("plotly_hover", "plotly_click", "plotly_selected", "plotly_relayout"), source = "A", session = shiny::getDefaultReactiveDomain())
The type of plotly event. Currently 'plotly_hover', 'plotly_click', 'plotly_selected', and 'plotly_relayout' are supported.
Which plot should the listener be tied to? This (character string) should match the value of source in plot_ly().
source
plot_ly()
a shiny session object (the default should almost always be used).
# NOT RUN { shiny::runApp(system.file("examples", "plotlyEvents", package = "plotly")) # }
Run the code above in your browser using DataLab