-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
How to get all subgraph data for a specified coordinate #6500
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
Email from @wanghe199512 : only one can be obtained now, as shown below: Hovering over the graph pointed by the arrow returned two pieces of data, and my request was: return the data from the other graphs as well. In the subgraph mode, I think this is better and more flexible. Echarts can do this |
A full solution to this issue would be best done as a Meantime, if your traces all have the same x data it's pretty easy to get all the corresponding y values inside the event handler because they'll be at the same position in the data arrays - look at const yVals = myplot.data.map(trace=> trace.y[eventdata.points[0].pointNumber]) |
Hi - we are tidying up issues and PRs in Plotly's public repositories so that we can focus on things that are most important to our community. For tech support and "how-to" questions, please post in our community forum https://community.plotly.com/. Thank you - @gvwilson |
I built multiple subgraphs, using click or hover on one subgraph, and how to use this coordinate to get data from other subgraphs(Click or use hover on a subgraph to get all the data for the other subgraphs at that coordinates)
myplot. On (' plotly' , function (eventdata){
// currently eventdata has only one subgraph data
}
example :https://codepen.io/wanghe199512/pen/XWPNbxJ
thanks
The text was updated successfully, but these errors were encountered: