From cda5ee05d895fcb00a1b63a2a86293c485ff215c Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Thu, 12 Sep 2024 19:26:23 +0200 Subject: [PATCH] fix: inverted colors of graph --- .../com/application/munera/views/dashboard/DashboardView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/application/munera/views/dashboard/DashboardView.java b/src/main/java/com/application/munera/views/dashboard/DashboardView.java index 27bb855..b23604b 100644 --- a/src/main/java/com/application/munera/views/dashboard/DashboardView.java +++ b/src/main/java/com/application/munera/views/dashboard/DashboardView.java @@ -206,7 +206,7 @@ public class DashboardView extends Div { StringBuilder data = new StringBuilder("["); for (Map.Entry entry : personData.entrySet()) { double value = entry.getValue(); - String color = value >= 0 ? "#90EE90" : "#FF9999"; // Green for positive, red for negative + String color = value >= 0 ? "#FF9999" : "#90EE90"; // Green for positive, red for negative data.append("{ y: ").append(value).append(", color: '").append(color).append("' },"); } data.setCharAt(data.length() - 1, ']'); // Replace last comma with closing bracket