From d90cfed3b96f83a3efdaec3864b47835dbb1ad58 Mon Sep 17 00:00:00 2001 From: linozen Date: Mon, 30 Aug 2021 12:17:19 +0200 Subject: [PATCH] remove width from figure generation --- explorer/lib/figures.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/explorer/lib/figures.py b/explorer/lib/figures.py index a6f556e..a03e2d7 100644 --- a/explorer/lib/figures.py +++ b/explorer/lib/figures.py @@ -24,13 +24,15 @@ def generate_pie_chart( custom_data=custom_data, color_discrete_sequence=color_discrete_sequence, color_discrete_map=color_discrete_map, - width=730, labels=labels, ) fig.update_traces( textinfo="percent+value", hovertemplate="Answer %{label}

given by %{value} respondents or %{percent}
of all who answered the question.
", ) + fig.update_layout( + legend={"y": 1.5, "font": {"size": 11}, "orientation": "v"}, + ) return fig @@ -55,7 +57,6 @@ def generate_boxplot(df, x, y, points, color, color_discrete_map): points=points, color=color, color_discrete_map=color_discrete_map, - width=730, ) return fig