Skip to content

Commit

Permalink
Fixed overlapping labels in PDF report
Browse files Browse the repository at this point in the history
  • Loading branch information
korridor committed Dec 18, 2024
1 parent 02fe89d commit 2992946
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions resources/views/reports/time-entry-aggregate/pdf.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
},
Expand All @@ -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;
Expand All @@ -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;
}
}
}
Expand Down

0 comments on commit 2992946

Please sign in to comment.