This commit is contained in:
Muhammad Eko 2024-10-07 14:37:13 +07:00
parent 06e340248e
commit 59a4eff1b1
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
NEXT_PUBLIC_API_URL="http://localhost:8080"
NEXT_PUBLIC_API_URL="https://erp.julongindonesia.com:8443/api"

View File

@ -97,7 +97,7 @@ export default function KaryawanPage() {
<div className="col-span-8 bg-white rounded-lg py-4 pl-4 max-h-[420px] flex flex-col">
<div className="text-xl font-bold">Ranking (Top 10) Total Penjatuhan Sanksi Setiap Perusahaan</div>
<div className="flex-1 min-h-[300px] flex justify-center items-center flex-col">
<BarChart className="w-full" dataset={[...sanctionSummary?.sort((a, b) => b.st + b.sp1 + b.sp2 + b.sp3 + b.phk - a.st - a.sp1 - a.sp2 - a.sp3 - a.phk).slice(0, 10) ?? []]} series={[
<BarChart className="w-full" dataset={[...sanctionSummary ? sanctionSummary.slice().sort((a, b) => b.st + b.sp1 + b.sp2 + b.sp3 + b.phk - a.st - a.sp1 - a.sp2 - a.sp3 - a.phk).slice(0, 10) : []]} series={[
{dataKey: "st", label: "ST", color: "#F5C322"},
{dataKey: "sp1", label: "SP1", color: "#F3832D"},
{dataKey: "sp2", label: "SP2", color: "#F6CBAB"},