-
-
Notifications
You must be signed in to change notification settings - Fork 137
Accessing pixel coordinates of data without event #69
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
Comments
After hew hours in the source code, here's what is working for me with in
and
I hope it can help someone. |
thanks @yarl , I still don't think react-plotly has first class hover events support. Could you confirm. Thanks |
@yarl Where do you import the Plotly.Fx from? |
install plotly js with below command and import Plotly object import Plotly from "plotly.js-cartesian-dist"; |
I'm trying to do something similar to the following forums where I'm trying to get the x, y coordinates of a data point in order to use the
Fx.loneHover
to programmatically trigger a hover event.Any advice on how to achieve this? If I inspect the chart ref in the PlotlyComponent in does not have the function
l2p
ord2p
anywhere within the object and I do not have an event handle to use to retrieve the x and y relative pixel locations.The text was updated successfully, but these errors were encountered: