for sure this question is trivial for many of you, but I totally lack in js coding.
I have a simple scatter plot and I pass, besides x and y also an ids list that contains ids of each feature. Warning this ids are different than the standard id returned by plotly.
What I’m not able to do is getting the specific element of the ids list when clicked on the corresponding point in the plot.
thanks again for the answer.
My problem is that I’m not able to get the single data of the clicked point. It is easy with x, y, id, pointNumber. But with something like this:
the problem is that sometimes (I did not figure out when and why this happens, I think might be input data related) the id returned by plotly (what you wrote above) is not the same of the original id of the data.
So I was thinking that passing a default array with custom ids (different than standard ones) might be the solution