This PR correctly changed some of plotly’s behavior when the device does not have hover capabilities. When the device does not have hover, many interactions normally triggered by mouseover are now triggered by click. It’s relatively straightforward to intercept touch events and re-emit them as mouse events, here’s a working CodePen example (interact with it in your mobile device). This should get you most of the way towards using touch in plotly.
Note that the
has-hover package being used by plotly.js returns true for the Android emulator (and false for an Android device). Consequently, plotly will still listen for mouseover events on the Android emulator. Use a physical Android device to test plotly touch interactions instead of an emulator. This is likely a bug with either the
has-hover package or the Android emulator, but I haven’t dug in deeply enough to figure out the source of the issue.