Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

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