diff --git a/frontend/src/routes/(app)/analytics/+page.svelte b/frontend/src/routes/(app)/analytics/+page.svelte
index 3ef032865..c7b8ccd67 100644
--- a/frontend/src/routes/(app)/analytics/+page.svelte
+++ b/frontend/src/routes/(app)/analytics/+page.svelte
@@ -309,7 +309,7 @@
name="current_risk"
s_label={cur_rsk_label}
values={risk_level.current}
- colors={RISK_COLOR_PALETTE}
+ colors={risk_level.current.map(object => object.color)}
/>
@@ -319,7 +319,7 @@
name="residual_risk"
s_label={rsd_rsk_label}
values={risk_level.residual}
- colors={RISK_COLOR_PALETTE}
+ colors={risk_level.residual.map(object => object.color)}
/>
@@ -622,6 +622,7 @@ c0.27-0.268,0.707-0.268,0.979,0l7.908,7.83c0.27,0.268,0.27,0.701,0,0.969c-0.271,
name="compliance_assessments"
s_label={m.complianceAssessments()}
values={compliance_assessment.donut.values}
+ colors={compliance_assessment.donut.values.map(object => object.itemStyle.color)}
/>
diff --git a/frontend/src/routes/(app)/analytics/composer/+page.svelte b/frontend/src/routes/(app)/analytics/composer/+page.svelte
index 0c9b489fa..cb3c19395 100644
--- a/frontend/src/routes/(app)/analytics/composer/+page.svelte
+++ b/frontend/src/routes/(app)/analytics/composer/+page.svelte
@@ -32,7 +32,7 @@
name="current_risk_level"
s_label="Current risk level per risk scenario"
values={data.current_level}
- colors={RISK_COLOR_PALETTE}
+ colors={data.current_level.map(object => object.color)}
/>
@@ -56,7 +56,7 @@
name="residual_risk_level"
s_label="Residual risk level per risk scenario"
values={data.residual_level}
- colors={RISK_COLOR_PALETTE}
+ colors={data.residual_level.map(object => object.color)}
/>
diff --git a/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/+page.svelte b/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/+page.svelte
index a940bcde5..be8dcb9c8 100644
--- a/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/+page.svelte
+++ b/frontend/src/routes/(app)/compliance-assessments/[id=uuid]/+page.svelte
@@ -141,6 +141,7 @@
name="compliance_assessments"
s_label="compliance_assessments"
values={compliance_assessment_donut_values.values}
+ colors={compliance_assessment_donut_values.values.map(object => object.itemStyle.color)}
/>