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

Deploying a choropleth - how!?

$
0
0

@collardesolate wrote:

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!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 6271

Trending Articles