Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Register for the Oct 27 webinar.

How to change the padding of a graph

Here the margins around the graphs are super thin. Whenever I make a graph the padding is massive. How can I change this?

Edit: I am ussing the suggested style sheet (albeit very slightly modified) if that matters, but I don’t see how it would.

https://codepen.io/chriddyp/pen/bWLwgP.css the style sheet, for some reason I am not allowed to post more than 2 links.

It’s done in the plotly layout:

figure = {
‘data’: data,

Just to be clear I was talking about the graph layout and not the app.Layout()


Thank you! Looks much better now :smile:

1 Like

Is there a way to do this dynamically? I would like to put a little text at the bottom of an indicator plot, but not set the size of the plot