Skip to content

Commit

Permalink
#346: fix alignment in Analytics for Applied controls
Browse files Browse the repository at this point in the history
  • Loading branch information
ab-smith committed May 5, 2024
1 parent 8ce8024 commit 9a56b7a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/core/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ def applied_control_per_status(user: User):
v = {"value": count, "itemStyle": {"color": color_map[st[0]]}}
values.append(v)
labels.append(st[1])
labels.insert(0, "undefined")
local_lables = [camel_case(str(label)) for label in labels]
return {"localLables": local_lables, "labels": labels, "values": values}

Expand Down

0 comments on commit 9a56b7a

Please sign in to comment.