From cb13be5ba27bf2b23a2ac2dad21f6bd683f2bf5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Tue, 17 Jan 2023 10:38:58 +0100 Subject: [PATCH] Changement d'affichage du dashboard --- View/src/JS/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/View/src/JS/dashboard.js b/View/src/JS/dashboard.js index d1953af6..3fbd7fd0 100644 --- a/View/src/JS/dashboard.js +++ b/View/src/JS/dashboard.js @@ -6,7 +6,6 @@ xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function () { lesInfos = JSON.parse(xhr.responseText); - console.log(lesInfos); var nbJoueur = lesInfos[0].length; for (i = 0; i < nbJoueur; i++) { v1 = {} @@ -14,6 +13,7 @@ v1.xValueFormatString=lesInfos[0][i]; v1.dataPoints=[]; var point = 0; + v1.dataPoints.push({x:lesInfos[1][i],y:0}); for (j = 0; j < lesInfos[1][i].length; j++) { point += lesInfos[1][i][j]; v1.dataPoints.push({x:j+1,y:point});