From c5f3f12e46316011d360b7d03b96f7f9e3cdf429 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Sun, 15 Jan 2023 11:14:59 +0100 Subject: [PATCH] =?UTF-8?q?2=20=C3=A8me=20essaie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- View/src/JS/dashboard.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/View/src/JS/dashboard.js b/View/src/JS/dashboard.js index 4558fbd5..ff7e6d3c 100644 --- a/View/src/JS/dashboard.js +++ b/View/src/JS/dashboard.js @@ -26,40 +26,40 @@ window.onload = function () { v.type="line"; v.xValueFormatString=players[0]; v.dataPoints=[]; + data.push(v); } // v.dataPoints.push({x:0,y:0}); // v.dataPoints.push({x:0.5,y:300}); - // data.push(v); if (players[1] != null) { v = {} v.type="line"; v.xValueFormatString=players[1]; v.dataPoints=[]; + data.push(v); } // v.dataPoints.push({x:0,y:0}); // v.dataPoints.push({x:0.5,y:300}); - // data.push(v); if (players[2] != null) { v = {} v.type="line"; v.xValueFormatString=players[2]; v.dataPoints=[]; + data.push(v); } // v.dataPoints.push({x:0,y:0}); // v.dataPoints.push({x:0.5,y:300}); - // data.push(v); if (players[3] != null) { v = {} v.type="line"; v.xValueFormatString=players[3]; v.dataPoints=[]; + data.push(v); } // v.dataPoints.push({x:0,y:0}); // v.dataPoints.push({x:0.5,y:300}); - // data.push(v); console.log(data);