Skip to content

Commit

Permalink
confidence interval chart fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amynickolls committed Jun 18, 2024
1 parent 2e782ca commit ee93810
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions dm_regional_app/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,22 +259,22 @@ def compare_forecast(
# Display confidence interval as filled shape
fig.add_trace(
go.Scatter(
x=df_ci["date"],
y=df_ci["lower"],
x=df_df_ci["date"],
y=df_df_ci["lower"],
line_color="rgba(255,255,255,0)",
name="Confidence interval",
name="Adjusted confidence interval",
showlegend=False,
)
)

fig.add_trace(
go.Scatter(
x=df_ci["date"],
y=df_ci["upper"],
x=df_df_ci["date"],
y=df_df_ci["upper"],
fill="tonexty",
fillcolor="rgba(0,176,246,0.2)",
fillcolor="rgba(255,140,0,0.2)",
line_color="rgba(255,255,255,0)",
name="Base confidence interval",
name="Adjusted confidence interval",
showlegend=True,
)
)
Expand All @@ -285,7 +285,7 @@ def compare_forecast(
x=df_ci["date"],
y=df_ci["lower"],
line_color="rgba(255,255,255,0)",
name="Confidence interval",
name="Base confidence interval",
showlegend=False,
)
)
Expand All @@ -297,7 +297,7 @@ def compare_forecast(
fill="tonexty",
fillcolor="rgba(0,176,246,0.2)",
line_color="rgba(255,255,255,0)",
name="Adjusted confidence interval",
name="Base confidence interval",
showlegend=True,
)
)
Expand Down

0 comments on commit ee93810

Please sign in to comment.