From 63be84e287c8ea2bfddafb67cab3861cffd1e17f Mon Sep 17 00:00:00 2001 From: Sietse Jonker Date: Wed, 6 Mar 2024 15:59:54 +0100 Subject: [PATCH] Update graph colors and scale for temperature, eCO2, and TVOC --- web/classes.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/classes.js b/web/classes.js index 083f646..bea7d93 100644 --- a/web/classes.js +++ b/web/classes.js @@ -17,7 +17,7 @@ class liveGraph { x: this.timeArray, // Use timeArray as x values y: this.tempArray, mode: "lines", - line: { color: "#80CAF6" }, + line: { color: "#FF0000" }, name: "Temperature", }, ]); @@ -35,8 +35,8 @@ class liveGraph { x: this.timeArray, // Use timeArray as x values y: this.eco2Array, mode: "lines", - line: { color: "#80CAF6" }, - name: "eCO2", + line: { color: "#FFA500" }, + name: "eCO2 / 10", }, ]); Plotly.plot(this.nodeId, [ @@ -44,8 +44,8 @@ class liveGraph { x: this.timeArray, // Use timeArray as x values y: this.tvocArray, mode: "lines", - line: { color: "#80CAF6" }, - name: "TVOC", + line: { color: "#000000" }, + name: "TVOC / 10", }, ]); } @@ -76,7 +76,7 @@ class liveGraph { // Update the graph this.tempArray.push(temperature); this.humiArray.push(humidity); - this.eco2Array.push(eCO2); - this.tvocArray.push(TVOC); + this.eco2Array.push(eCO2 / 10); + this.tvocArray.push(TVOC / 10); } } \ No newline at end of file