mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-18 05:02:14 +01:00
Fixed overlapping labels in PDF report
This commit is contained in:
committed by
Constantin Graf
parent
02fe89dfdf
commit
29929467f6
@@ -393,11 +393,7 @@
|
|||||||
if (minutes < 10) {
|
if (minutes < 10) {
|
||||||
minutes = "0" + minutes;
|
minutes = "0" + minutes;
|
||||||
}
|
}
|
||||||
let seconds = totalSeconds % 60;
|
return hours + ":" + minutes;
|
||||||
if (seconds < 10) {
|
|
||||||
seconds = "0" + seconds;
|
|
||||||
}
|
|
||||||
return hours + ":" + minutes + ":" + seconds;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -412,6 +408,11 @@
|
|||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
show: true,
|
show: true,
|
||||||
|
@if(count($dataHistoryChart['grouped_data']) > 15)
|
||||||
|
rotate: 90,
|
||||||
|
offset: [10, 5],
|
||||||
|
@endif
|
||||||
|
fontSize: 10,
|
||||||
position: "top",
|
position: "top",
|
||||||
formatter: function(params) {
|
formatter: function(params) {
|
||||||
let value = params.value;
|
let value = params.value;
|
||||||
@@ -428,11 +429,7 @@
|
|||||||
if (minutes < 10) {
|
if (minutes < 10) {
|
||||||
minutes = "0" + minutes;
|
minutes = "0" + minutes;
|
||||||
}
|
}
|
||||||
let seconds = totalSeconds % 60;
|
return hours + ":" + minutes;
|
||||||
if (seconds < 10) {
|
|
||||||
seconds = "0" + seconds;
|
|
||||||
}
|
|
||||||
return hours + ":" + minutes + ":" + seconds;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user