Values "0" on stacked area chart

Hi. I build stacked area chart and have some problem with hover info when one of values is โ€œ0โ€. See screenshot for more information.
I cant see red line value on chart, because green line higher and green line value is โ€œ0โ€ in this point.
Thatโ€™s possible show values for all lines? Or just ignore zero values?

code:

chart = go.Figure()
chart.add_trace(go.Scatter(x=x, y=y, hoverinfo='x+y', stackgroup='one'))

screenshot:


hovermode=โ€˜xโ€™ is what i need

go.Figure(layout={โ€˜hovermodeโ€™: โ€˜xโ€™})

I also have this issue but donโ€™t want to show all labels at the same time. Can I show the red line and not the green line label e.g. by stopping zero data having a label?

I thought I might be able to fix this by using hoveron=โ€˜fillsโ€™ but that messed up my labels.

1 Like

See Hover over filled area: incorrect text ยท Issue #2399 ยท plotly/plotly.py ยท GitHub for hoveron=โ€˜fillsโ€™ issue