Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

Plot is fixed 100px height after going changing display from none to something else

$
0
0

Hey all,

I’ve been having this problem recently: I have a plot that shows without problem if I don’t mess with style. But if I set the div’s in which the plot is inside’s style to {'display': 'none'} and then change it to block or inline inside a callback, I’m getting a fixed 100px plot:

I tried changing height in the plot’s layout and the div’s height in the callback, but I’m getting the same result anyways. What am I missing? is this expected?

I can share a reproducible example if needed. Thanks !

Edit: After explicitly adding the height in dcc.Graph's style I managed to make the plots show properly. Is this the recommended way?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles