From 02105fd116062a948be8d0c0f28f4c90c815f5da Mon Sep 17 00:00:00 2001 From: marcus-snx Date: Thu, 17 Oct 2024 21:28:32 +0300 Subject: [PATCH] Fix many charts template --- dashboards/utils/charts.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/dashboards/utils/charts.py b/dashboards/utils/charts.py index 3167cc3..a611d6d 100644 --- a/dashboards/utils/charts.py +++ b/dashboards/utils/charts.py @@ -133,7 +133,6 @@ def chart_many_bars( color: Optional[str] = None, x_format: str = "#", y_format: str = "$", - help_text: Optional[str] = None, ): """Create a bar chart with multiple series.""" fig = px.bar( @@ -151,7 +150,7 @@ def chart_many_bars( fig.update_layout( font=dict(family=FONT_FAMILY), ) - return update_layout(fig, help_text=help_text) + return fig def chart_many_lines( @@ -162,7 +161,6 @@ def chart_many_lines( color: Optional[str] = None, x_format: str = "#", y_format: str = "$", - help_text: Optional[str] = None, ): """Create a line chart with multiple series.""" fig = px.line( @@ -175,7 +173,7 @@ def chart_many_lines( template=PLOTLY_TEMPLATE, ) fig = set_axes(fig, x_format, y_format) - return update_layout(fig, help_text=help_text) + return fig def chart_bars(