# Interactive hover line

**URL:** <https://community.plotly.com/t/interactive-hover-line/39537>\
**Category:** 📊 Plotly Python\
**Created:** [May 16, 2020, 1:48am UTC](https://community.plotly.com/t/interactive-hover-line/39537 "2020-05-16T01:48:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tseronni](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@tseronni](https://community.plotly.com/u/tseronni)\
**Post date:** [May 16, 2020, 1:48am UTC](https://community.plotly.com/t/interactive-hover-line/39537/1 "2020-05-16T01:48:49Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Emmanuelle](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emmanuelle/32/7853_2.png) [@Emmanuelle](https://community.plotly.com/u/Emmanuelle)\
**Post date:** [May 16, 2020, 12:58pm UTC](https://community.plotly.com/t/interactive-hover-line/39537/2 "2020-05-16T12:58:38Z")

</div>

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](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/](https://plotly.com/python/click-events/) (you can replace `on_click` by `on_hover` in the example).
