improve graphs and table

This commit is contained in:
Carl-Gerhard Lindesvärd
2023-10-18 09:50:12 +02:00
parent 206ae54dea
commit 2cb6bbfdd3
14 changed files with 341 additions and 90 deletions

View File

@@ -0,0 +1,5 @@
export function getDaysOldDate(days: number) {
const date = new Date();
date.setDate(date.getDate() - days);
return date;
}

View File

@@ -3,7 +3,6 @@ import { z } from "zod";
export const zChartEvent = z.object({
id: z.string(),
name: z.string(),
displayName: z.string(),
filters: z.array(
z.object({
id: z.string(),