From 9a56b7a048080d6a2e06c0d1156d62b676593520 Mon Sep 17 00:00:00 2001 From: Abderrahmane Smimite Date: Sun, 5 May 2024 17:51:07 +0200 Subject: [PATCH] #346: fix alignment in Analytics for Applied controls --- backend/core/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/core/helpers.py b/backend/core/helpers.py index cf7b706ec..7b25bab75 100644 --- a/backend/core/helpers.py +++ b/backend/core/helpers.py @@ -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}