Hide steam from production graph

This commit is contained in:
Danielv123 committed 2017-06-14 15:08:34 +02:00
1 parent c24cb51f13
commit f9a2e8519b
1 file changed
+5 -1
+5 -1
View File
@@ -42,6 +42,10 @@ setTimeout(function() {
xmlhttp.send(); xmlhttp.send();
}, 0) }, 0)
let chartIgnoreList = [
"water",
"steam"
]
// ID of slave, ID of canvasjs div without # // ID of slave, ID of canvasjs div without #
function makeGraph(slaveID, selector) { function makeGraph(slaveID, selector) {
@@ -56,7 +60,7 @@ function makeGraph(slaveID, selector) {
} }
let chartData = []; let chartData = [];
for(let o = 0; o < itemNames.length; o++) { for(let o = 0; o < itemNames.length; o++) {
if(itemNames[o] != "water"){ if(!chartIgnoreList.includes(itemNames[o])){
chartData[chartData.length] = generateLineChartArray(data, itemNames[o]); chartData[chartData.length] = generateLineChartArray(data, itemNames[o]);
} }
} }