Skip to content

Commit

Permalink
Fix ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmbland committed Dec 7, 2023
1 parent 42bc24e commit f813e78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,8 @@ def generate_gen_split_fig(df: pd.DataFrame) -> px.pie:
},
marker=dict(colors=[power_sources_colors[n] for n in names_positive]),
legendgroup="1",
sort=False,
direction="clockwise",
)

# Right pie
Expand All @@ -199,6 +201,8 @@ def generate_gen_split_fig(df: pd.DataFrame) -> px.pie:
},
marker=dict(colors=[power_sources_colors[n] for n in names_negative]),
legendgroup="2",
sort=False,
direction="clockwise",
)

# Figure
Expand Down

0 comments on commit f813e78

Please sign in to comment.