added visualisation
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
|
||||
async function initChart() {
|
||||
const ctx = document.getElementById('myChart').getContext('2d');
|
||||
const data = await fetch("/data/");
|
||||
const data = await fetch("data/");
|
||||
console.log(data);
|
||||
const {humidity, temp, co2} = transformData(await data.json());
|
||||
const myChart = Chart.Line(ctx, {
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user