Set axis to be positive for bar chart

Hello,

I’m using a bar chart and when all y-values are zero, it shows negative values on the y-axis (y-axis shown range is [-1;1] in this case). How can i set a minimal boundary at 0 ?

By setting layout.yaxis.rangemode: 'tozero' like in https://codepen.io/etpinard/pen/PmWyOo?editors=0010

1 Like

It works, thanks @etienne