From 22c80fd7af43cd8c2e94a9cffd1efcab15363296 Mon Sep 17 00:00:00 2001 From: rob thijssen Date: Mon, 11 May 2026 16:02:30 +0300 Subject: [PATCH] feat(ui): transpose weekday averages to vertical bar chart Show days on the X axis and volume on the Y axis, replacing the horizontal bar layout with vertical bars for a more natural time-series reading direction. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/src/components/ContributionStats.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/ui/src/components/ContributionStats.tsx b/ui/src/components/ContributionStats.tsx index 897a595..6b910e2 100644 --- a/ui/src/components/ContributionStats.tsx +++ b/ui/src/components/ContributionStats.tsx @@ -120,22 +120,21 @@ export function ContributionStats() {
avg by weekday -
+
{stats.dayAvgs.map(({ name, avg }) => ( -
- {name} -
+
+ {avg.toFixed(1)} +
0 ? `${(avg / stats.maxAvg) * 100}%` : '0%', - height: '100%', + height: stats.maxAvg > 0 ? `${(avg / stats.maxAvg) * 100}%` : '0%', borderRadius: 3, backgroundColor: '#39d353', opacity: 0.7, }} />
- {avg.toFixed(1)} + {name}
))}