diff --git a/Controller/VisitorController.php b/Controller/VisitorController.php index e8a42143..f592aee3 100644 --- a/Controller/VisitorController.php +++ b/Controller/VisitorController.php @@ -57,7 +57,6 @@ class VisitorController { try { global $rep, $vues; - echo "test"; require($rep . $vues['main']); } catch (Exception $e) { $error = $e->getMessage(); diff --git a/View/src/JS/dashboard.js b/View/src/JS/dashboard.js index 05bd310f..d1953af6 100644 --- a/View/src/JS/dashboard.js +++ b/View/src/JS/dashboard.js @@ -13,8 +13,10 @@ v1.type="line"; v1.xValueFormatString=lesInfos[0][i]; v1.dataPoints=[]; + var point = 0; for (j = 0; j < lesInfos[1][i].length; j++) { - v1.dataPoints.push({x:j+1,y:lesInfos[1][i][j]}); + point += lesInfos[1][i][j]; + v1.dataPoints.push({x:j+1,y:point}); } data.push(v1); }