From aec7414e69abfe36792f61f0ee99d89fad39160e Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Tue, 7 Nov 2023 15:55:50 +0100 Subject: [PATCH] Removed the background color of plotly plot. (#334) Removed the background color of the plot to fully use the plotly_white layout. --- src/aki_prj23_transparenzregister/ui/finance_elements.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/aki_prj23_transparenzregister/ui/finance_elements.py b/src/aki_prj23_transparenzregister/ui/finance_elements.py index be2bce5..e2722f4 100644 --- a/src/aki_prj23_transparenzregister/ui/finance_elements.py +++ b/src/aki_prj23_transparenzregister/ui/finance_elements.py @@ -155,18 +155,18 @@ def financials_figure(selected_finance_df: pd.DataFrame, metric: str) -> go.Figu # create figure fig_line = go.Figure() # add trace for company 1 + line_color = COLORS["raisin-black"] fig_line.add_trace( go.Scatter( x=selected_finance_df["date"], y=selected_finance_df[metric], - line_color=COLORS["raisin-black"], - marker_color=COLORS["raisin-black"], + line_color=line_color, + marker_color=line_color, ) ) # set title and labels fig_line.update_layout( - title="Entwicklungsverlauf: " + METRICS[metric], + title=f"Entwicklungsverlauf: {METRICS[metric]}", yaxis_title=f"{METRICS[metric]} in Euro (€)", - plot_bgcolor=COLORS["light"], ) return fig_line