mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-25 00:12:35 +02:00
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:
parent
d79bc0f267
commit
aec7414e69
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user