ahuang11 commited on
Commit
fb5bf5c
1 Parent(s): 22ae45a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -454,7 +454,7 @@ class ClimateApp(pn.viewable.Viewer):
454
  @param.depends("year", watch=True)
455
  def _update_oni_plot(self):
456
  df = self._oni_df
457
- df_year = df.loc[df["year"] == 1998]
458
  df_year.iloc[-1, -1] = 365
459
 
460
  overlay = hv.Overlay([])
 
454
  @param.depends("year", watch=True)
455
  def _update_oni_plot(self):
456
  df = self._oni_df
457
+ df_year = df.loc[df["year"] == self.year]
458
  df_year.iloc[-1, -1] = 365
459
 
460
  overlay = hv.Overlay([])