From ee93810d20ce229e1c82c4e26bec38a206419ebc Mon Sep 17 00:00:00 2001 From: AmyNickollse Date: Tue, 18 Jun 2024 16:14:58 +0100 Subject: [PATCH] confidence interval chart fix --- dm_regional_app/charts.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dm_regional_app/charts.py b/dm_regional_app/charts.py index 6f6b1fe..544c9eb 100644 --- a/dm_regional_app/charts.py +++ b/dm_regional_app/charts.py @@ -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, ) ) @@ -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, ) ) @@ -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, ) )