You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Scripted/View/src/JS/dashboard.js

42 lines
929 B

function dashboard () {
data = [];
v4 = {}
v4.type="line";
v4.xValueFormatString='playersPseudo';
v4.dataPoints=[];
v3.dataPoints.push({x:1,y:100});
console.log(data);
var chart = new CanvasJS.Chart("chartContainer", {
animationEnabled: true,
zoomEnabled: true,
theme: "dark2",
title: {
text: "Score"
},
axisX: {
title: "Enigme",
valueFormatString: "####",
interval: 1
},
axisY: {
title: "Point",
titleFontColor: "#6D78AD",
lineColor: "#6D78AD",
gridThickness: 0,
lineThickness: 1,
},
legend: {
verticalAlign: "top",
fontSize: 16,
},
data
});
chart.render();
}
window.addEventListener("load", start);
function start(){
setInterval('dashboard()', 1000);
}