Looking at this example, I believe that the issue is that there isn’t enough room to display the labels and the chart.
The height of the dcc.Graph
is always fixed. automargin
will expand the margins (thereby shrinking the main graph area) to accomidate the labels. In this case, there isn’t enough room to display the labels at the default height, so the automargin resorts to the default margin size (80px).
However, if I make the graph height larger, e.g. 600px
, then automargin will kick in:
Vs the default size:
Vs height 300