Changed endpoints and db queries, chart now shows suggested mins and maxes

This commit is contained in:
Daniel Ledda
2020-11-07 01:20:00 +01:00
parent b16c240760
commit 607b82272e

View File

@@ -22,8 +22,9 @@
urlEndpoint += "since/" + pathname.slice(pathname.lastIndexOf("/") + 1); urlEndpoint += "since/" + pathname.slice(pathname.lastIndexOf("/") + 1);
} }
const data = await fetch(urlEndpoint); const data = await fetch(urlEndpoint);
console.log(pathname, data.json()); const newData = transformData(await data.json());
return transformData(await data.json()); console.log(pathname, newData);
return newData;
} }
async function initChart() { async function initChart() {