UCS2014 commited on
Commit
48eb8a8
·
verified ·
1 Parent(s): 6835768

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -250,7 +250,7 @@ def track_plot(df, include_actual=True):
250
  x=df["UCS_Pred"], y=y, mode="lines",
251
  line=dict(color=COLORS["pred"], width=1.8),
252
  name="UCS_Pred",
253
- hovertemplate="UCS_Pred: %{x:.0f}<br>"+ylab+": %{y}<extra></extra>"
254
  ))
255
 
256
  if include_actual and TARGET in df.columns:
@@ -258,7 +258,7 @@ def track_plot(df, include_actual=True):
258
  x=df[TARGET], y=y, mode="lines",
259
  line=dict(color=COLORS["actual"], width=2.0, dash="dot"),
260
  name="UCS (actual)",
261
- hovertemplate="UCS (actual): %{x:.0f}<br>"+ylab+": %{y}<extra></extra>"
262
  ))
263
 
264
  fig.update_layout(
@@ -284,7 +284,7 @@ def track_plot(df, include_actual=True):
284
  showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
285
  )
286
 
287
- fig.update_yaxes(
288
  title_text=f"<b>{ylab}</b>",
289
  title_font=dict(size=16),
290
  range=y_range,
 
250
  x=df["UCS_Pred"], y=y, mode="lines",
251
  line=dict(color=COLORS["pred"], width=1.8),
252
  name="UCS_Pred",
253
+ hovertemplate="UCS_Pred: %{x:.0f}<br>" + ylab + ": %{y}<extra></extra>"
254
  ))
255
 
256
  if include_actual and TARGET in df.columns:
 
258
  x=df[TARGET], y=y, mode="lines",
259
  line=dict(color=COLORS["actual"], width=2.0, dash="dot"),
260
  name="UCS (actual)",
261
+ hovertemplate="UCS (actual): %{x:.0f}<br>" + ylab + ": %{y}<extra></extra>"
262
  ))
263
 
264
  fig.update_layout(
 
284
  showgrid=True, gridcolor="rgba(0,0,0,0.12)", automargin=True
285
  )
286
 
287
+ fig.update_yaxes(
288
  title_text=f"<b>{ylab}</b>",
289
  title_font=dict(size=16),
290
  range=y_range,