Skip to content

Commit

Permalink
Update app/layout_elements.py
Browse files Browse the repository at this point in the history
Co-authored-by: Johannes Aschauer <[email protected]>
  • Loading branch information
markushal and joAschauer authored Dec 13, 2023
1 parent db0ccea commit cdc507a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/layout_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ def display_costs(
value=True,
key=f"sort_data_{key}_{key_suffix}",
)
if sort_ascending:
df_res = df_res.sort_values(["Total"], ascending=True)
if sort_ascending:
df_res = df_res.sort_values(["Total"], ascending=True)

# create graph:
fig = create_bar_chart_costs(
df_res,
Expand Down

0 comments on commit cdc507a

Please sign in to comment.