I'm currently working on visualizing covid-19 cases in Austria. I'd like the graph to be able to switch the value you want to see with a dropdown menu. (e.g. Total cases, total deaths, etc.) This is what I currently have:
fig = px.choropleth(df,geojson = data
,locations = 'GKZ'
,scope = 'europe'
,color = "7-Tage-Inzidenz"
,featureidkey='properties.iso'
,animation_frame = 'Datum'
,hover_data = ['Bezirk']
)
fig.update_geos(showcountries=False, showcoastlines=False,showland = False,fitbounds = "locations")
fig["layout"]
fig["layout"].pop("updatemenus")
fig.write_html('österreichkarte.html',auto_play = False)
I tried with the tutorial Plotly is offering and added this:
fig.update_layout(
updatemenus=[
dict(
buttons=list([
dict(
args=[{"color":"7-Tage-Inzidenz"}],
label = "7-Tage-Inzidenz",
method = "restyle"
),
dict(
args=[{"color":"AnzahlFaelle"}],
label = "AnzahlFaelle",
method = "restyle"
)
]))
])
Now i get a dropdown with "7-Tage-Inzidenz" and "AnzahlFaelle", but nothing changes when I select one of them. Any help is greatly appreciated!

