From d81819b23361111f6c86603985c38c2849488fa1 Mon Sep 17 00:00:00 2001 From: Charlie Collard Date: Mon, 17 Jun 2024 13:58:35 +0100 Subject: [PATCH] Add y-axis formatter for overview bar chart --- ui/src/routes/index.lazy.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/routes/index.lazy.tsx b/ui/src/routes/index.lazy.tsx index fd925e4..cf83f19 100644 --- a/ui/src/routes/index.lazy.tsx +++ b/ui/src/routes/index.lazy.tsx @@ -190,6 +190,7 @@ export function TheBarChart({ counts }: TheBarChartProps) { fontSize={12} tickLine={false} axisLine={false} + tickFormatter={(number) => Intl.NumberFormat("en-US", {notation: "compact", maximumFractionDigits: 1}).format(number)} />