Merge branch 'main' of gitlab.fdmci.hva.nl:propedeuse-hbo-ict/onderwijs/2023-2024/out-a-se-ti/blok-3/qaajeeqiinii59

This commit is contained in:
Bram Barbieri
2024-04-02 15:32:47 +02:00
3 changed files with 6 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ class Graph {
makeGraph(line, lineColor, name) {
let div = document.createElement("div");
div.setAttribute("id", this.id);
document.body.appendChild(div);
document.graphBody.appendChild(div);
let lineArray;
switch (line) {
case "temp":
@@ -135,7 +135,7 @@ class DataProcessor {
this.graph.makeGraph("temp", "red", "Temperature");
this.graph.makeGraph("humi", "blue", "Humidity");
this.graph.makeGraph("eco2", "green", "eCO2");
this.graph.makeGraph("tvoc", "#F5G644", "TVOC");
this.graph.makeGraph("tvoc", "black", "TVOC");
}
updateGraph() {

View File

@@ -31,5 +31,7 @@
<body>
<script src="graph-classes.js"></script>
<script src="graph-main.js"></script>
<div class="graphBody"></div>
</body>
</html>

View File

@@ -111,6 +111,8 @@ body {
align-self: center;
width: 95%;
height: 100%;
border-radius: 20px;
border: 2px solid #000;
margin: 10px;
}
/* Additional styling as needed */