Displaying image on point hover in Plotly

前端 未结 1 1695
情书的邮戳
情书的邮戳 2020-12-15 20:47

Plotly allows you to display text fields when hovering over a point on a scatterplot. Is it possible to instead display an image associated with each point when the user hov

相关标签:
1条回答
  • 2020-12-15 21:30

    Unfortunately, there is no easy way to display images on hover on plotly graphs at the moment.

    If you are willing to learn some javascript, plotly's embed API allows you to customize hover (as well as click) interactivity.

    Here is an example of a custom hover interaction showing images on top of a plotly graph. The javascript source code can be found here.

    0 讨论(0)
提交回复
热议问题