From 95f1fce0e21b380e5098e638f3684b7c4af5c612 Mon Sep 17 00:00:00 2001 From: = <=> Date: Fri, 17 Apr 2026 14:32:37 +1000 Subject: [PATCH] hiding numbers if rows are to short --- site/src/chart/components/GroupChart.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/chart/components/GroupChart.tsx b/site/src/chart/components/GroupChart.tsx index c1a933d..4bc42cc 100644 --- a/site/src/chart/components/GroupChart.tsx +++ b/site/src/chart/components/GroupChart.tsx @@ -22,7 +22,7 @@ function GroupChart({ data }: GroupProps) { return { dataKey: item[0], label: item[0], - barLabel: selectedSeries.length === 1 ? ('value' as const) : undefined, + barLabel: (selectedSeries.length === 1)&&(data.length<20) ? ('value' as const) : undefined, } }); const chartSetting = {