I’m interested in capturing mouse events like mouse hover, mouse click etc, when users interact with plotly objects.
document.addEventListener() function. But for some reason no events are emitted when users hover over the plotly visualizations and hence I can’t quantify users interactions. For the time being we can only capture continuous x/y positions of the mouse cursor. As far as I can see, we run into this obstacle for both SVG and WebGL (scattergl) modes of plotly.js, whereas logging a visualization written directly via D3.js seems works fine.
- Does anyone have ideas what might be the cause?
- In case this might be a limitation in our approach (in terms of API used), do you have other recommendations as to how to capture mouse interactions within plotly plots?
Thanks a lot for your input.