From a1be0dfe68ea7c8049f4e57bbdf6de6b80625e26 Mon Sep 17 00:00:00 2001 From: rouggy Date: Sat, 18 Jul 2026 04:48:26 +0200 Subject: [PATCH] feat: Added color per band in statistics as well as number of qso --- frontend/src/components/StatsPanel.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/StatsPanel.tsx b/frontend/src/components/StatsPanel.tsx index 9048e7a..89e88dc 100644 --- a/frontend/src/components/StatsPanel.tsx +++ b/frontend/src/components/StatsPanel.tsx @@ -115,7 +115,7 @@ function HBars({ data, max, empty, share, labelWidth = 'w-20' }: { data: Bucket[ // Sorting bands by COUNT would destroy the band-plan reading; the order is the // information. -function VBars({ data, empty, height = 150 }: { data: Bucket[]; empty: string; height?: number }) { +function VBars({ data, empty, height = 150, showValues, colorful }: { data: Bucket[]; empty: string; height?: number; showValues?: boolean; colorful?: boolean }) { const peak = Math.max(1, ...data.map((d) => d.count)); if (data.length === 0) return

{empty}

; // Thin the x labels once the bars get narrow. A label under EVERY one of 48 @@ -129,12 +129,13 @@ function VBars({ data, empty, height = 150 }: { data: Bucket[]; empty: string; h {data.map((d, i) => (
- + {nf(d.count)}
{i % every === 0 ? d.key : ''} @@ -705,7 +706,7 @@ export function StatsPanel() { ) : (
- +