Show material type in graph

This commit is contained in:
Danielv123 committed 2017-03-10 21:14:20 +01:00
1 parent 1f06d3eb48
commit 1fc2de231b
1 file changed
+5 -3
+5 -3
View File
@@ -82,14 +82,13 @@ function generateLineChartArray(data, nameKey) {
y = 0
}
chartData[chartData.length] = {
/*x: new Date(data[i].timestamp),*/
x: new Date(data[i].timestamp),//new Date(2012, 00, i),
x: new Date(data[i].timestamp),
y: Number(y)
}
// console.log(i + " | " + y)
}
}
let xyz = {};
xyz.name = nameKey;
xyz.type = "spline";
xyz.dataPoints = chartData;
return xyz;
@@ -101,6 +100,9 @@ function drawChart(selector, chartData) {
title:{
text: "Production graph"
},
toolTip:{
content: "{name}: {y}"
},
axisY:{
includeZero: true
},