✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Deploying a choropleth - how!?

Hiya,

I have created a choropleth visualisation, code below:

fig = px.choropleth(df_countrydate, 
                    locations="Country", 
                    locationmode = "country names",
                    color="Confirmed", 
                    hover_name="Country", 
                    animation_frame="Date",
                    color_continuous_scale="reds"
                    #range_color=(0, 1000)
                   )

fig.update_layout(
    title_text = 'Spread of Coronavirus Outside of China',
    title_x = 0.5,
    geo=dict(
        showframe = False,
        showcoastlines = False,
    ))
    
fig.show()

I want to deploy this to a dash app but can’t find any documentation or anything telling me how I can? I’ve got it up and running in a jupyter notebook, so I know it works, but any help would be amazing.

I have a basic dash app running with, basically, a ‘hello world’, but can’t update it with this viz.

Thanks!

Hi @collardesolate
This tutorial shows how to connect a choropleth to Dash.