Skip to content

Commit 2992946

Browse files
committed
Fixed overlapping labels in PDF report
1 parent 02fe89d commit 2992946

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

resources/views/reports/time-entry-aggregate/pdf.blade.php

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,7 @@
393393
if (minutes < 10) {
394394
minutes = "0" + minutes;
395395
}
396-
let seconds = totalSeconds % 60;
397-
if (seconds < 10) {
398-
seconds = "0" + seconds;
399-
}
400-
return hours + ":" + minutes + ":" + seconds;
396+
return hours + ":" + minutes;
401397
}
402398
}
403399
},
@@ -412,6 +408,11 @@
412408
},
413409
label: {
414410
show: true,
411+
@if(count($dataHistoryChart['grouped_data']) > 15)
412+
rotate: 90,
413+
offset: [10, 5],
414+
@endif
415+
fontSize: 10,
415416
position: "top",
416417
formatter: function(params) {
417418
let value = params.value;
@@ -428,11 +429,7 @@
428429
if (minutes < 10) {
429430
minutes = "0" + minutes;
430431
}
431-
let seconds = totalSeconds % 60;
432-
if (seconds < 10) {
433-
seconds = "0" + seconds;
434-
}
435-
return hours + ":" + minutes + ":" + seconds;
432+
return hours + ":" + minutes;
436433
}
437434
}
438435
}

0 commit comments

Comments
 (0)