Plotly gauge indicator doesn't take up all of the graph space

Hey guys!
I am trying to create a dash indicator inside a card in my dashboard
here is the indicator code (sorry for the screenshot its on another network.)

Now, this is the result of putting it on my card:

the indicatorlayer doesn’t take up all the main-svg element.

Any idea how to fix this?

Hello @Matan,

There are default margins for all the elements involved. (Figure, dcc.graph, card, etc) Alter these and you should get your desired result.

Figure can be done by:

fig.update_layout(margin=dict( l=0, t=0, r=0, b=0))
1 Like

Thanks! I totally forgot there is a margin to the graphs!

1 Like