diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index fcae490..79ff7a7 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -15,123 +15,38 @@ import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; export default function TotalMahasiswaPage() { const [selectedYear, setSelectedYear] = useState("all"); - // helper wrapper biar semua chart full-height di dalam card - const Tile = ({ title, children, className = "" }: any) => ( - - {title && ( - - {title} - - )} - {/* atur tinggi tile di sini */} -
{children}
-
-
- ); - return (
-
-
-

Mahasiswa

-

- Informasi jumlah mahasiswa, jenis pendaftaran, status mahasiswa, rata-rata IPK, dan asal daerah dengan filter tahun angkatan. -

-
- {/* (opsional) tempat tombol aksi */} - {/*
- -
*/} -
- -{/* Toolbar Filter (sticky) */} -
- - -
- - {/* tombol reset (opsional) */} - {/* */} +

Dashboard Mahasiswa

+ +
+

+ Visualisasi data akademik mahasiswa Informartika Universitas Tanjungpura +

+
+ +
+
+ +
- - -
{selectedYear === "all" ? ( - /* ===== LAYOUT ALL YEARS (12 kolom) ===== */ -
- {/* Bar besar kiri */} -
- - - -
- - {/* Dua tile kecil kanan atas */} -
- - - -
- - {/* Bar horizontal (wilayah) */} -
- - - -
- - {/* Rata-rata IPK */} -
- - - -
- - {/* Lebar penuh di bawah */} -
- - - -
+
+ + + + +
) : ( - /* ===== LAYOUT PER ANGKATAN (12 kolom) ===== */ -
-
- - - -
- -
- - - -
- -
- - - -
+
+ + +
)}
diff --git a/app/page.tsx b/app/page.tsx index 7fbb54f..b78e953 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -198,18 +198,7 @@ export default function DashboardPage() {
- - - - Jenis Pendaftaran Mahasiswa - - - -
-
-
-
diff --git a/components/charts/JenisPendaftaranChart.tsx b/components/charts/JenisPendaftaranChart.tsx index d86be71..9c86df8 100644 --- a/components/charts/JenisPendaftaranChart.tsx +++ b/components/charts/JenisPendaftaranChart.tsx @@ -54,7 +54,7 @@ export default function JenisPendaftaranChart() { xaxis: { categories: [], title: { - text: 'Jumlah Mahasiswa', + text: 'Tahun Angkatan', style: { fontSize: '14px', fontWeight: 'bold', @@ -70,7 +70,7 @@ export default function JenisPendaftaranChart() { }, yaxis: { title: { - text: 'Tahun Angkatan', + text: 'Jumlah Mahasiswa', style: { fontSize: '14px', fontWeight: 'bold', diff --git a/components/charts/StatistikMahasiswaChart.tsx b/components/charts/StatistikMahasiswaChart.tsx index 747b522..44bd1b3 100644 --- a/components/charts/StatistikMahasiswaChart.tsx +++ b/components/charts/StatistikMahasiswaChart.tsx @@ -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 ( -
- + + + Jumlah Mahasiswa + + + +
+
- ); +
+ +); } \ No newline at end of file diff --git a/components/charts/StatusMahasiswaChart.tsx b/components/charts/StatusMahasiswaChart.tsx index e891b66..08b88cd 100644 --- a/components/charts/StatusMahasiswaChart.tsx +++ b/components/charts/StatusMahasiswaChart.tsx @@ -28,13 +28,22 @@ export default function StatusMahasiswaChart() { stacked: false, toolbar: { show: true, + tools: { + download: true, + selection: true, + zoom: true, + zoomin: true, + zoomout: true, + pan: true, + reset: true + }, }, background: theme === 'dark' ? '#0F172B' : '#fff', }, plotOptions: { bar: { horizontal: false, - columnWidth: '55%', + columnWidth: '65%', }, }, dataLabels: { diff --git a/components/ui/Navbar.tsx b/components/ui/Navbar.tsx index 6eea277..d7a67d7 100644 --- a/components/ui/Navbar.tsx +++ b/components/ui/Navbar.tsx @@ -108,12 +108,12 @@ const Navbar = () => { Beranda - {/* Visualisasi Dropdown - Only when logged in */} + {/* Dashboard Dropdown - Only when logged in */} {user && ( <> - Visualisasi Data + Dashboard