|
|
@@ -80,7 +80,7 @@ class StatsController extends BackendController |
|
|
|
*/ |
|
|
|
|
|
|
|
$dateStart = date('Y-m-d', time() - 60 * 60 * 24 * 365); |
|
|
|
$dateEnd = date('Y-m-d'); |
|
|
|
$dateEnd = date('Y-m-d', time() + 60 * 60 * 24 * 31); |
|
|
|
|
|
|
|
$data = []; |
|
|
|
|
|
|
@@ -122,7 +122,7 @@ class StatsController extends BackendController |
|
|
|
// création d'un tableau sans index car chart.js n'accepte pas les index |
|
|
|
$dataNoIndex = []; |
|
|
|
foreach ($data as $key => $val) { |
|
|
|
$dataNoIndex[] = $val; |
|
|
|
$dataNoIndex[] = round($val, 2); |
|
|
|
} |
|
|
|
|
|
|
|
return $this->render('index', [ |