Dashboard + python

ServeurDeTest
Pierre BALLANDRAS 2 years ago
parent bcded9a6ae
commit ddb5b31383

@ -49,6 +49,7 @@ window.onload = function () {
]
}
v2 = {
type: "line",
xValueFormatString: "Noe",
@ -62,9 +63,35 @@ window.onload = function () {
]
}
data = []
data.push(v1);
data.push(v2);
///dataPoints=[{x:0,y:0},{x:1,y:300}]
///v3={type:"line",xValueFormatString:"test",dataPoints};
data = [];
v = {}
v.type="line";
v.xValueFormatString="test";
v.dataPoints=[];
v.dataPoints.push({x:0,y:0});
v.dataPoints.push({x:0.5,y:300});
data.push(v);
v = {}
v.type="line";
v.xValueFormatString="toto";
v.dataPoints=[{ x: 0, y: 0 },
{ x: 1, y: 100 },
{ x: 2, y: 100 },
{ x: 3, y: 200 },
{ x: 4, y: 250 },
{ x: 5, y: 300 },];
data.push(v);
///data.push(v3);
console.log(data);
var chart = new CanvasJS.Chart("chartContainer", {

Loading…
Cancel
Save