new chart system (#158)

* new chart system
This commit is contained in:
Christian Kellner
2025-09-03 14:22:32 +02:00
committed by GitHub
parent 9774989eeb
commit 3d87aeb5f9
10 changed files with 727 additions and 421 deletions

View File

@@ -8,4 +8,4 @@ export function format(ts) {
second: 'numeric',
}).format(ts);
}
export const roundToNext5Minute = (ts) => Math.ceil(ts / (1000 * 60 * 5)) * (1000 * 60 * 5);
export const roundToHour = (ts) => Math.ceil(ts / (1000 * 60 * 60)) * (1000 * 60 * 60);