# Plotly Express Bars from non-zero

**URL:** <https://community.plotly.com/t/plotly-express-bars-from-non-zero/38437>\
**Category:** 📊 Plotly Python\
**Created:** [April 26, 2020, 6:39pm UTC](https://community.plotly.com/t/plotly-express-bars-from-non-zero/38437 "2020-04-26T18:39:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![softwarrior](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@softwarrior](https://community.plotly.com/u/softwarrior)\
**Post date:** [April 26, 2020, 6:39pm UTC](https://community.plotly.com/t/plotly-express-bars-from-non-zero/38437/1 "2020-04-26T18:39:06Z")

</div>

Hi!  
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?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Emmanuelle](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emmanuelle/32/7853_2.png) [@Emmanuelle](https://community.plotly.com/u/Emmanuelle)\
**Post date:** [April 26, 2020, 7:39pm UTC](https://community.plotly.com/t/plotly-express-bars-from-non-zero/38437/2 "2020-04-26T19:39:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![softwarrior](https://avatars.discourse-cdn.com/v4/letter/s/b19c9b/32.png) [@softwarrior](https://community.plotly.com/u/softwarrior)\
**Post date:** [May 15, 2020, 7:28pm UTC](https://community.plotly.com/t/plotly-express-bars-from-non-zero/38437/3 "2020-05-15T19:28:45Z")

</div>

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