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, ) )