Changed endpoints and db queries, chart now shows suggested mins and maxes
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
|
||||
async function initChart() {
|
||||
const ctx = document.getElementById('myChart').getContext('2d');
|
||||
const {humidity, temp, co2} = getData();
|
||||
const {humidity, temp, co2} = await getData();
|
||||
const myChart = Chart.Line(ctx, {
|
||||
data: {
|
||||
datasets: [{
|
||||
|
||||
Reference in New Issue
Block a user