feat: add minimal chart to display API data with hardcoded parameters

This commit is contained in:
Alexis Fourmaux 2026-05-11 23:17:43 +02:00
parent e71a0d9602
commit 8289d23cf9
4 changed files with 70 additions and 1 deletions

View file

@ -0,0 +1,10 @@
window.onload = loadData
async function loadData() {
const points = await fetchConsumption({
start: '2026-05-04T00:00:00',
end: '2026-05-09T00:00:00',
granularity: 'day',
});
renderChart(points);
}