Hi guys,
recently I was able to add some additional click js event to the plot.
However, I have a problem that I cannot solve. According to the plotly documentation on how to handle events some variables are easy returned, like curveNumber, pointNumber, x, y and data:
something like:
var plotly_data = plotly_div.data
for(var i=0; i < data.points.length; i++){
data.points[i].x
data.points[i].pointNumber
data.points[i].y
}
I have a plot where I have defined and ids list of unique ID. Getting the x or y (or pointNumber) of the clicked plot is pretty straightforward, is it possible to get also the linked element of the ids (that is not equal to the pointNumber) list of the clicked point?
I hope to have been clear in explaining the problem.
Thanks for all the suggestions and hints
Cheers
Matteo