From eaaf9f64365f94dd6ad9d7150456cd45633aac60 Mon Sep 17 00:00:00 2001 From: Randa Firman Putra Date: Sun, 7 Sep 2025 03:43:41 +0700 Subject: [PATCH] kesekian kalinya --- app/dashboard/page.tsx | 8 ++++++-- app/page.tsx | 6 +++++- components/charts/AsalDaerahChart.tsx | 8 ++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 7f26a98..08d6c58 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -80,8 +80,12 @@ export default function TotalMahasiswaPage() { {/* Demographics Section */}
- - +
+ +
+
+ +
) : ( diff --git a/app/page.tsx b/app/page.tsx index fce41e8..7ee2f0c 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -7,6 +7,7 @@ import { useTheme } from "next-themes"; import StatistikMahasiswaChart from "@/components/charts/StatistikMahasiswaChart"; import JenisPendaftaranChart from "@/components/charts/JenisPendaftaranChart"; import AsalDaerahChart from "@/components/charts/AsalDaerahChart"; +import ProvinsiMahasiswaChart from "@/components/chartsDashboard/ProvinsiMahasiswaPieChart"; interface MahasiswaTotal { total_mahasiswa: number; @@ -203,9 +204,12 @@ export default function DashboardPage() {
-
+
+
+ +
) diff --git a/components/charts/AsalDaerahChart.tsx b/components/charts/AsalDaerahChart.tsx index 613e941..7d2fdfd 100644 --- a/components/charts/AsalDaerahChart.tsx +++ b/components/charts/AsalDaerahChart.tsx @@ -255,9 +255,9 @@ export default function AsalDaerahChart() { // Calculate dynamic height based on number of kabupaten const calculateHeight = () => { - const minHeight = 200; - const barHeight = 25; // Height per bar in pixels - const padding = 100; // Extra space for title, legend, etc. + const minHeight = 100; + const barHeight = 15; // Height per bar in pixels + const padding = 50; // Extra space for title, legend, etc. const dynamicHeight = Math.max(minHeight, (data.length * barHeight) + padding); return `${dynamicHeight}px`; }; @@ -271,7 +271,7 @@ export default function AsalDaerahChart() {