Removed the background color of plotly plot. (#334)

Removed the background color of the plot to fully use the plotly_white
layout.
This commit is contained in:
Philipp Horstenkamp 2023-11-07 15:55:50 +01:00 committed by GitHub
parent d79bc0f267
commit aec7414e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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