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
user should be able to get mouse data coordinate on click #4654
The "plotly_click" is only fired when clicking on data point, how to obtain the same information when clicking on an empty part of the plot ?
It seems that people have tried this for years, but all the solutions I have found are just completely broken.
EDIT: I'd like to add that with typedarray support + scattergl plot, plotly is one of the best plotting library, but without the ability to correctly turn mouse coodinates into data coordinates, it is just impossible to use for any real life usage.
Activity
hminle commentedon Sep 19, 2022
Hi @Pierre-Bartet , have you found a solution for this issue?
Pierre-Bartet commentedon Sep 19, 2022
It was a long time ago but unfortunately I don't think so.
[-]Get mouse data coordinate on click[/-][+]user should be able to get mouse data coordinate on click[/+]emilykl commentedon Aug 27, 2026
This is now possible by setting
layout.clickanywheretotrue(added in #7707). Use the latest plotly.js (v4.0.0) to try it out.