From 29929467f67e04820b6fd176dcac14cac003a681 Mon Sep 17 00:00:00 2001 From: Constantin Graf Date: Wed, 18 Dec 2024 10:48:52 -0500 Subject: [PATCH] Fixed overlapping labels in PDF report --- .../reports/time-entry-aggregate/pdf.blade.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/resources/views/reports/time-entry-aggregate/pdf.blade.php b/resources/views/reports/time-entry-aggregate/pdf.blade.php index 02a2c65b..47c21905 100644 --- a/resources/views/reports/time-entry-aggregate/pdf.blade.php +++ b/resources/views/reports/time-entry-aggregate/pdf.blade.php @@ -393,11 +393,7 @@ if (minutes < 10) { minutes = "0" + minutes; } - let seconds = totalSeconds % 60; - if (seconds < 10) { - seconds = "0" + seconds; - } - return hours + ":" + minutes + ":" + seconds; + return hours + ":" + minutes; } } }, @@ -412,6 +408,11 @@ }, label: { show: true, + @if(count($dataHistoryChart['grouped_data']) > 15) + rotate: 90, + offset: [10, 5], + @endif + fontSize: 10, position: "top", formatter: function(params) { let value = params.value; @@ -428,11 +429,7 @@ if (minutes < 10) { minutes = "0" + minutes; } - let seconds = totalSeconds % 60; - if (seconds < 10) { - seconds = "0" + seconds; - } - return hours + ":" + minutes + ":" + seconds; + return hours + ":" + minutes; } } }