From 56225bb1ad30e2679ed061060038396e468f21dc Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Mon, 9 Mar 2026 13:37:00 +0100 Subject: [PATCH] Match ShadCN interactive bar chart style - Remove cursor={false} to enable hover highlight - Remove rounded bar corners for flat ShadCN look - Remove explicit stroke/color on grid and axes (inherit from CSS) - Use var(--color-{metric}) for bar fill - Reduce chart height to 250px (ShadCN default) - Simplify bar props to match ShadCN minimal pattern Co-Authored-By: Claude Opus 4.6 --- components/dashboard/Chart.tsx | 42 ++++++++++------------------------ 1 file changed, 12 insertions(+), 30 deletions(-) diff --git a/components/dashboard/Chart.tsx b/components/dashboard/Chart.tsx index 5b376a2..ec0b805 100644 --- a/components/dashboard/Chart.tsx +++ b/components/dashboard/Chart.tsx @@ -494,7 +494,7 @@ export default function Chart({ Current - + Previous{prevPeriodLabel ? ` (${prevPeriodLabel})` : ''} @@ -555,40 +555,31 @@ export default function Chart({ {!hasData ? ( -
+

No data for this period

) : !hasAnyNonZero ? ( -
+

No {metricLabel.toLowerCase()} recorded

) : ( -
- - - +
+ + + { @@ -607,28 +598,19 @@ export default function Chart({ prevPeriodLabel={prevPeriodLabel} /> } - cursor={false} /> {hasPrev && ( )} {annotationMarkers.map((marker) => {