eaglelandsonce commited on
Commit
c69dcae
·
verified ·
1 Parent(s): 425ebac

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,10 +32,10 @@ date_options = covid['Date'].unique().tolist()
32
  date = st.selectbox("Which date would you like to see?", date_options, 100)
33
  country = st.multiselect("Which country would you like to see?", country_options, ['Brazil'])
34
  covid = covid[covid['Country'].isin(country)]
35
- covid = covid[covid['Date'] == date]
36
 
37
  fig2 = px.bar(covid, x="Country", y="Confirmed", color="Country",
38
- range_y=[0,35000])
39
 
40
  fig2.layout.updatemenus[0].buttons[0].args[1]['frame']['duration'] = 30
41
  fig2.layout.updatemenus[0].buttons[0].args[1]['transition']['duration'] = 5
 
32
  date = st.selectbox("Which date would you like to see?", date_options, 100)
33
  country = st.multiselect("Which country would you like to see?", country_options, ['Brazil'])
34
  covid = covid[covid['Country'].isin(country)]
35
+ # covid = covid[covid['Date'] == date]
36
 
37
  fig2 = px.bar(covid, x="Country", y="Confirmed", color="Country",
38
+ range_y=[0,35000], animation_frame="Date", animation_group="Country")
39
 
40
  fig2.layout.updatemenus[0].buttons[0].args[1]['frame']['duration'] = 30
41
  fig2.layout.updatemenus[0].buttons[0].args[1]['transition']['duration'] = 5