From 3c3bf98dc263508745a909ad90451d5c728973e5 Mon Sep 17 00:00:00 2001 From: Elena-kal Date: Fri, 22 May 2026 12:49:28 +0200 Subject: [PATCH] fix: pie chart coloring is now consistent and does not switch with majority --- backend/protzilla/data_preprocessing/plots.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/protzilla/data_preprocessing/plots.py b/backend/protzilla/data_preprocessing/plots.py index 2746c205f..282ed07dc 100644 --- a/backend/protzilla/data_preprocessing/plots.py +++ b/backend/protzilla/data_preprocessing/plots.py @@ -39,7 +39,7 @@ def create_pie_plot( ) fig.update_layout(title={"text": f"{heading}"}) - fig.update_traces(hovertemplate="%{label}
Amount: %{value}") + fig.update_traces(hovertemplate="%{label}
Amount: %{value}", sort=False) return fig