Set axis to be positive for bar chart


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

1 Like

It works, thanks @etienne