You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Coordinates of mouse clicks when used with Shiny #1194
When using plotly with Shiny, would it be possible to implement a feature in plotly::plotlyOutput() similar to plotOutput("plot", click = "plot_click") to capture the exact coordinates of a mouse click like in the example below?
It's only currently possible to get the coordinates of clicks on actual data/marks. Doing something like this properly should be done at the plotly.js level... I've started an issue here -- plotly/plotly.js#2696
Activity
cpsievert commentedon Jun 5, 2018
It's only currently possible to get the coordinates of clicks on actual data/marks. Doing something like this properly should be done at the plotly.js level... I've started an issue here -- plotly/plotly.js#2696
KasperSkytte commentedon Jun 6, 2018
Great, thanks a lot!
ismirsehregal commentedon Nov 8, 2019
For those interested: I posted a workaround here.
ismirsehregal commentedon Apr 30, 2026
By now this feature was implemented in plotly.js.