I have a custom control (a couple of nested divs with text, a button to perform an action and a pointy indicator) that I’d like to use in-place of the standard hover text in a 3D scatter chart. I want to emphasise the point being highlighted (and ultimately have a click action too), so I use a semi-transparent overlay div to dim the canvas, then place my control and a replacement circle indicator on top. All of the behaviour and appearance and ability to precisely position it is now as I’d like it, but I don’t have access to the screen coordinates of the point I want to label/highlight.
The ‘point’ object delivered by a click event describes the data (series number, point number within series) but tells me nothing about the on-screen position of the point. This must be known somewhere, for the default hover to correctly place the hoverinfo. Given I know a point, and the coordinates in data-space, how do I ask Plotly for the screen coordinates?
(I believe there’s a family of functions for the 2D charts for mapping to/from screen/data space - I’m hoping there’s a 3D equivalent, at least for the data->screen mapping in 3D charts).