feat: add bar, donut, and pie charts to dashboard for enhanced data visualization

This commit is contained in:
Ardeman
2025-03-13 05:45:03 +08:00
parent 474c6dc750
commit 0680fb4dc8
5 changed files with 157 additions and 118 deletions
+6 -8
View File
@@ -1,10 +1,8 @@
import { CardReport } from '~/components/ui/card-report'
import {
ChartSubscription,
UiChartBar,
UiChartPie,
} from '~/components/ui/chart'
import { ChartBar } from './chart-bar'
import { ChartDonut } from './chart-donut'
import { ChartPie } from './chart-pie'
import { HISTORY, REPORT } from './data'
export const DashboardPage = () => {
return (
@@ -46,16 +44,16 @@ export const DashboardPage = () => {
/>
))}
<div className="max-h-[300px] sm:col-span-2 sm:col-start-2 sm:row-span-2 sm:row-start-1">
<UiChartPie />
<ChartPie />
</div>
</div>
<div className="flex flex-wrap gap-5 py-5 sm:flex-nowrap">
<div className="h-full w-full sm:w-[60%]">
<UiChartBar />
<ChartBar />
</div>
<div className="w-ful h-full sm:w-[40%]">
<ChartSubscription />
<ChartDonut />
</div>
</div>
</div>