From 22957e11797ecf3f845d7ec9301e585a2e3260f7 Mon Sep 17 00:00:00 2001 From: Harkamal Randhawa Date: Mon, 2 Mar 2026 13:07:19 -0700 Subject: [PATCH] Hide pie chart labels to fix overlap --- log.txt | 1 + .../example/petshopdesktop/controllers/AnalyticsController.java | 2 ++ 2 files changed, 3 insertions(+) diff --git a/log.txt b/log.txt index f6564c3c..273796fb 100644 --- a/log.txt +++ b/log.txt @@ -44,3 +44,4 @@ The last packet sent successfully to the server was 0 milliseconds ago. The driv [2026-03-02 13:00:16] [ERROR] EXCEPTION | Location: ConnectionDB.getConnection | Type: CommunicationsException | Message: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. | Context: Establishing database connection +[2026-03-02 13:02:48] [INSERT] DB_INSERT | Table: sale | ID: Refund ID: 24 | Details: Created refund for sale ID 23 with 1 items, total: $240.00 diff --git a/src/main/java/org/example/petshopdesktop/controllers/AnalyticsController.java b/src/main/java/org/example/petshopdesktop/controllers/AnalyticsController.java index 0624effb..6bb2a28a 100644 --- a/src/main/java/org/example/petshopdesktop/controllers/AnalyticsController.java +++ b/src/main/java/org/example/petshopdesktop/controllers/AnalyticsController.java @@ -154,6 +154,8 @@ public class AnalyticsController { ); chartPaymentMethods.getData().add(slice); } + + chartPaymentMethods.setLabelsVisible(false); } private void loadEmployeePerformance() throws Exception {