Skip to content

Commit

Permalink
add labels
Browse files Browse the repository at this point in the history
  • Loading branch information
linozen committed Aug 24, 2021
1 parent 6174f50 commit 83384a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions explorer/lib/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ def generate_pie_chart(
color,
color_discrete_sequence,
color_discrete_map,
labels,
):
fig = px.pie(
df,
Expand All @@ -21,6 +22,7 @@ def generate_pie_chart(
color_discrete_sequence=color_discrete_sequence,
color_discrete_map=color_discrete_map,
width=800,
labels=labels,
)
fig.update_traces(textinfo="percent+value")
return fig
Expand Down

0 comments on commit 83384a6

Please sign in to comment.