From 42392e8c461adb8cc1015d091d67ce484948e46b Mon Sep 17 00:00:00 2001 From: effe Date: Sat, 14 Sep 2024 15:37:32 -0400 Subject: [PATCH] feat: stacked columns graph --- .../application/munera/views/dashboard/DashboardView.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 d6d1045..f13635c 100644 --- a/src/main/java/com/application/munera/views/dashboard/DashboardView.java +++ b/src/main/java/com/application/munera/views/dashboard/DashboardView.java @@ -181,7 +181,8 @@ public class DashboardView extends Div { "title: { text: 'Total Expense' }, " + "stackLabels: { " + "enabled: true, " + - "style: { fontWeight: 'bold', color: 'gray' }, " + + "style: { fontWeight: 'bold', fontSize: '14px', color: 'white', textOutline: '1px contrast', " + + "backgroundColor: 'rgba(0,0,0,0.75)', padding: 4, borderRadius: 3 }, " + // Background and border for better visibility "formatter: function() { " + " if (this.total > 0) { return this.total; } else { return ''; }" + // Only show total if greater than 0 "}" + @@ -195,7 +196,8 @@ public class DashboardView extends Div { "formatter: function() { " + " if (this.y > 0) { return this.y; } else { return ''; }" + // Only show data label if value > 0 "}," + - "color: 'black'" + // Set label color + "color: 'black', " + // Set data label color to black + "style: { fontSize: '12px', fontWeight: 'bold' }" + // Customize individual labels' appearance "} " + "} " + "}, " +