Merge branch 'master' of https://codefirst.iut.uca.fr/git/nathan.boileau/Scripted
continuous-integration/drone/push Build is passing Details

ServeurDeTest
nathan boileau 2 years ago
commit d537d72e3e

@ -6,7 +6,6 @@
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xhr.onload = function () { xhr.onload = function () {
lesInfos = JSON.parse(xhr.responseText); lesInfos = JSON.parse(xhr.responseText);
console.log(lesInfos);
var nbJoueur = lesInfos[0].length; var nbJoueur = lesInfos[0].length;
for (i = 0; i < nbJoueur; i++) { for (i = 0; i < nbJoueur; i++) {
v1 = {} v1 = {}
@ -14,6 +13,7 @@
v1.xValueFormatString=lesInfos[0][i]; v1.xValueFormatString=lesInfos[0][i];
v1.dataPoints=[]; v1.dataPoints=[];
var point = 0; var point = 0;
v1.dataPoints.push({x:0,y:0});
for (j = 0; j < lesInfos[1][i].length; j++) { for (j = 0; j < lesInfos[1][i].length; j++) {
point += lesInfos[1][i][j]; point += lesInfos[1][i][j];
v1.dataPoints.push({x:j+1,y:point}); v1.dataPoints.push({x:j+1,y:point});

Loading…
Cancel
Save