that’s exactly what you suggested me here:
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