✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Plotly Express Bars from non-zero

I’d like to use plotly express to make bar-charts but my bars don’t start at zero. I’m currently using graph-objects with the base parameter. Am I missing something with plotly.express.bar?

Hi @softwarrior you can create a figure with px.bar and then specify the base with fig.update_traces(base=[...]).

Thank you. I didn’t realize you could update traces this way.