✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Show totals on stacked Express Funnel Chart

Hi,

I was wondering how i can slightly change the labels on a funnel chart I am working on using Python and plotly.express

At the moment, the chart is not showing the “Totals” (which should be in descending order) for each category on the y-axis, but rather, the portion in “Red”.

I want the annotations on the bar chart to show the following (the actual totals), which I get when i removed the “stacked” dimension:
image

This is my current code:

fig = px.funnel(temp_no_reject, x='job_application_id', y='Step')#, color='status')
fig.update_layout(
        margin=dict(l=20, r=20, t=20, b=20),
        paper_bgcolor="LightSteelBlue",
        height=650,
        width=800, 
        legend=dict(
            yanchor="top",
            y=0.2,
            xanchor="left",
            x=0.7
        )
)

Thank you!