Project fixes
This commit is contained in:
parent
8580676a11
commit
71591256cc
2 changed files with 4 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class GenerateProjectChartData extends Job
|
|||
$sqlDate = $date->format('Y-m-d');
|
||||
|
||||
if (isset($taskMap[$sqlDate])) {
|
||||
$total += $taskMap[$sqlDate] / 60 / 60;
|
||||
$total += round($taskMap[$sqlDate] / 60 / 60, 2);
|
||||
}
|
||||
|
||||
$records[] = $total;
|
||||
|
|
|
|||
|
|
@ -158,6 +158,9 @@
|
|||
}
|
||||
|
||||
function loadChart(data) {
|
||||
if (! data.duration) {
|
||||
return;
|
||||
}
|
||||
var ctx = document.getElementById('chart-canvas').getContext('2d');
|
||||
$('#chart-canvas').fadeIn();
|
||||
window.myChart = new Chart(ctx, {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue