Matan
November 10, 2022, 7:31am
1
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))
Detailed examples of Setting Graph Size including changing color, size, log axes, and more in Python.
1 Like
Matan
November 10, 2022, 10:52am
3
Thanks! I totally forgot there is a margin to the graphs!
1 Like