Project fixes

This commit is contained in:
Hillel Coren 2018-01-24 17:21:45 +02:00
parent 8580676a11
commit 71591256cc
2 changed files with 4 additions and 1 deletions

View File

@ -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;

View File

@ -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, {