I started playing with Dash and Plotly recently so I did my first bar plot. However, there is one thing that I want to change but I couldn't find a way to do so. Currently, when I start my Dash app and go to my localhost url, I have the following graph:

After a double-click on the plot, I get the following zoomed graph:

Is there a way to make my graph look like my second image by default or to have the width of the plots to be fit-content? I did a research and it seems that I can set xrange and yrange but I have a dynamic graph and sometimes I can have 8 plots, sometimes I can have 18 plots and approximating the xrange won't be that useful for my case.