Skip to content

Commit

Permalink
remove width from figure generation
Browse files Browse the repository at this point in the history
  • Loading branch information
linozen committed Aug 30, 2021
1 parent 288b06f commit d90cfed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions explorer/lib/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="<b>Answer</b> %{label}<br><br>given by <b>%{value}</b> respondents or <b>%{percent}</b><br>of all who answered the question.<br>",
)
fig.update_layout(
legend={"y": 1.5, "font": {"size": 11}, "orientation": "v"},
)
return fig


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

Expand Down

0 comments on commit d90cfed

Please sign in to comment.