You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
Hi @nchelaru, I have observed the same with other plotly_express chart types use in Dash. I don't have an explanation for it but what worked best for me was to have the Output of the callback be a html.Div's children element and return the whole dcc.Graph object rather than just the figure.
dbc.Col(dbc.Card([
dbc.CardHeader("Geographic distribution of sales territories",
style={'backgroundColor':'#F3AE4E', 'color':'white', 'fontWeight':'bold'}),
dbc.CardBody(
id='map-container'
),
], className='h-100', color="light", outline=True), width=7)
This app single-page, but with multiple tabs. Curiously, if the tab that contains this map is the first one to be loaded, the map renders in the correct size.
This is not a serious problem, but a strange one.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello!
I am creating a Dash app that includes a map made using the following code:
The map is embeded in the Dash app like so:
The strange thing is that on start-up of the app, the map almost always shows up in a smaller size.
When I click on the animation button, the map then pops into the right size.
Is there a way to correct this?
Thank you very much!
The text was updated successfully, but these errors were encountered: