From f9a2e8519b98f47c64859320066f6dc9a3a39267 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Wed, 14 Jun 2017 15:08:34 +0200 Subject: [PATCH] Hide steam from production graph --- static/slaveDisplay.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/static/slaveDisplay.js b/static/slaveDisplay.js index 959491b5..c901e1d2 100644 --- a/static/slaveDisplay.js +++ b/static/slaveDisplay.js @@ -42,6 +42,10 @@ setTimeout(function() { xmlhttp.send(); }, 0) +let chartIgnoreList = [ + "water", + "steam" +] // ID of slave, ID of canvasjs div without # function makeGraph(slaveID, selector) { @@ -56,7 +60,7 @@ function makeGraph(slaveID, selector) { } let chartData = []; for(let o = 0; o < itemNames.length; o++) { - if(itemNames[o] != "water"){ + if(!chartIgnoreList.includes(itemNames[o])){ chartData[chartData.length] = generateLineChartArray(data, itemNames[o]); } }