# How to display multiple y values when hovering on lines without data points?

**URL:** <https://community.plotly.com/t/how-to-display-multiple-y-values-when-hovering-on-lines-without-data-points/57583>\
**Category:** plotly.js\
**Created:** [October 15, 2021, 2:08am UTC](https://community.plotly.com/t/how-to-display-multiple-y-values-when-hovering-on-lines-without-data-points/57583 "2021-10-15T02:08:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hc128168](https://avatars.discourse-cdn.com/v4/letter/h/df788c/32.png) [@hc128168](https://community.plotly.com/u/hc128168)\
**Post date:** [October 15, 2021, 2:08am UTC](https://community.plotly.com/t/how-to-display-multiple-y-values-when-hovering-on-lines-without-data-points/57583/1 "2021-10-15T02:08:22Z")

</div>

I am using Dash 2.0 and Plotly 5.3.1 to plot this graph:

 ![Untitled](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/f/3/f3df83b476a23cb34144f702fde00a34efeb34ae.png)

The code snippet:

```auto
fig = px.line(df, x="time", y="bacteria count", line_shape="hv", markers=True, color='name')
fig.update_traces(mode="markers+lines", hovertemplate=None)
fig.update_layout(hovermode="x unified")

```

Case #1  
When I move my mouse over to k9’s line at 05:55:44, it shows a vertical dash line with the y value of k9 – 1780. However, it doesn’t show the y value of d3 at that time, which is -240.

Case #2  
And then if I move my mouse over to k9’s line at 05:56:00, the vertical dash line is gone.

What I want to achieve is:

1. in case #1, I want to see the y values of k9 and d3 at 05:55:44, which are 1780 and 240.
2. in case #2, I want to see the y values of k9 and d3 at 05:56:00, which are 1780 and 240.

How can I achieve that?

Thanks!
