Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Expanding plotly graphs size in dash

I have a heatmap I created like this:

        data = ff.create_annotated_heatmap(
                x = x,
                y = y,
                z = z_labels,
                text = texts,
                hoverinfo = "text",
                showscale = False,
                annotation_text = z_texts,
                colorscale = color_scale,

This is the layout I use:

“ticks”: “”,
“side”: “top”
“ticks”: ‘’,
“ticksuffix”: ’ ',
“l”: 0,
“r”: 0,
“b”: 10,
“t”: 20,
“pad”: 4

However as can seen in the image the actual graph itself takes up very small space in the container. How can I make the actual graph bigger?

I don’t see anything immediately wrong with your code. Can you share a complete, simple, reproducable example?