โœŠ๐Ÿฟ Black Lives Matter. Please consider donating to Black Girls Code today.
๐Ÿ‡ Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Interactive hover line

Hi,

Someone knows if in plotly I can do this action:

When hover a line, show another two dashed lines or show a shape

If yes, how I can do it?

Hi @tseronni welcome to the forum! This is something which you can do in a Dash application, catching the hoverData event emitted by the plotly figure (https://dash.plotly.com/interactive-graphing). If you canโ€™t use Dash, you can use a FigureWidget inside the Jupyter notebook, see for example https://plotly.com/python/click-events/ (you can replace on_click by on_hover in the example).

1 Like