I defined a hover event, where I will give a special color to the hovered point, and return the 3d plot.
In terms of the color assignment, i just update the trace, as the coding below
fig[‘data’][0][‘marker’][‘color’][k] = marker_color[i]
fig[‘data’][0][‘marker’][‘size’][k] = marker_size[i]
fig[‘data’][0][‘marker’][‘symbol’][k] = marker_symbol[i]
It works well, but there is one drawback:
For example, I have rotated my 3d plot to a specific angle. Once the hover event was triggered, the system assigned a new color to the hovered point, but also reset the coordinates. In other words, the previous zoom status or rotation status was missing.
Any solutions or hints to assign the color to the hovered point, but no changes on the zoom and rotation status?