From ad747b17720dd840957b0bc076e35eba19b664bc Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Mon, 9 Mar 2026 13:31:07 +0100 Subject: [PATCH] Switch main dashboard chart from AreaChart to BarChart ShadCN-style bar chart with rounded corners, solid fill, clean grid, and translucent comparison bars. Co-Authored-By: Claude Opus 4.6 --- components/dashboard/Chart.tsx | 49 +++++++++------------------------- 1 file changed, 12 insertions(+), 37 deletions(-) diff --git a/components/dashboard/Chart.tsx b/components/dashboard/Chart.tsx index 6c60c7d..5b376a2 100644 --- a/components/dashboard/Chart.tsx +++ b/components/dashboard/Chart.tsx @@ -3,8 +3,8 @@ import { useState, useMemo, useRef, useCallback, useEffect } from 'react' import { useTheme } from '@ciphera-net/ui' import { - AreaChart, - Area, + BarChart, + Bar, XAxis, YAxis, CartesianGrid, @@ -567,15 +567,8 @@ export default function Chart({ ) : (
- - - - - - - + } - cursor={{ stroke: 'var(--chart-axis)', strokeOpacity: 0.3, strokeWidth: 1 }} + cursor={false} /> {hasPrev && ( - )} - ) })} - +
)}