plotly / plotly.js

Open-source JavaScript charting library behind Plotly and Dash
https://plotly.com/javascript/
MIT License
16.93k stars 1.86k forks source link

user should be able to get mouse data coordinate on click #4654

Open Pierre-Bartet opened 4 years ago

Pierre-Bartet commented 4 years ago

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.

hminle commented 2 years ago

Hi @Pierre-Bartet , have you found a solution for this issue?

Pierre-Bartet commented 2 years ago

It was a long time ago but unfortunately I don't think so.