feat: add minimal chart to display API data with hardcoded parameters
This commit is contained in:
parent
e71a0d9602
commit
8289d23cf9
4 changed files with 70 additions and 1 deletions
10
server/frontend/public/assets/js/main.js
Normal file
10
server/frontend/public/assets/js/main.js
Normal 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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue