Add Dashboard

This commit is contained in:
Randa Firman Putra
2025-08-21 23:32:23 +07:00
parent 8190bf216d
commit 91f3445c3c
6 changed files with 53 additions and 131 deletions

View File

@@ -68,8 +68,8 @@ export default function StatistikMahasiswaChart() {
},
},
stroke: {
show: false,
width: [0, 0, 0],
show: true,
width: 2,
colors: ['transparent', 'transparent', 'transparent'],
curve: 'straight' as const
},
@@ -304,8 +304,15 @@ export default function StatistikMahasiswaChart() {
}
return (
<div className="h-[300px] sm:h-[350px] md:h-[300px] w-full max-w-5xl mx-auto">
<Chart
<Card className="bg-white dark:bg-slate-900 shadow-lg">
<CardHeader>
<CardTitle className="text-xl font-bold dark:text-white">
Jumlah Mahasiswa
</CardTitle>
</CardHeader>
<CardContent>
<div className="h-[300px] sm:h-[350px] md:h-[300px] w-full max-w-5xl mx-auto">
<Chart
options={chartOptions}
series={chartSeries}
type="bar"
@@ -313,5 +320,7 @@ export default function StatistikMahasiswaChart() {
width="100%"
/>
</div>
);
</CardContent>
</Card>
);
}