initial commit

This commit is contained in:
Randa Firman Putra
2025-09-10 02:38:32 +07:00
parent a5f2a1f069
commit 61a08dc212
25 changed files with 964 additions and 70 deletions

View File

@@ -301,9 +301,9 @@ export default function AsalDaerahPerAngkatanChart({ tahunAngkatan }: Props) {
// 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`;
};
@@ -317,7 +317,7 @@ export default function AsalDaerahPerAngkatanChart({ tahunAngkatan }: Props) {
</CardHeader>
<CardContent>
<div
className="w-full max-w-5xl mx-auto"
className="w-full max-w-xl mx-auto"
style={{ height: calculateHeight() }}
>
<Chart