Skip to content

Commit

Permalink
Remove small numbers from pie
Browse files Browse the repository at this point in the history
tsmbland committed Dec 6, 2023
1 parent ec15800 commit 707f5f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/figures.py
Original file line number Diff line number Diff line change
@@ -171,6 +171,8 @@ def generate_gen_split_fig(df: pd.DataFrame) -> px.pie:
color=power_sources,
color_discrete_map=power_sources_colors,
)
gen_split_fig.update_traces(textposition="inside")
gen_split_fig.update_layout(uniformtext_minsize=12, uniformtext_mode="hide")

return gen_split_fig

0 comments on commit 707f5f6

Please sign in to comment.