|
|
@@ -7,6 +7,7 @@ import Datatable from "@/components/Tables/Datatable";
|
|
|
import { useState, useEffect } from "react";
|
|
|
|
|
|
function CaseProgress({ data, nextButton, prevButton, tahun, newLaporan, excel }) {
|
|
|
+
|
|
|
const laporan_pertahun = data.laporan_perTahun;
|
|
|
|
|
|
const [chartData, setChartData] = useState([
|
|
|
@@ -19,7 +20,8 @@ function CaseProgress({ data, nextButton, prevButton, tahun, newLaporan, excel }
|
|
|
|
|
|
useEffect(() => {
|
|
|
laporan_pertahun.forEach((e) => {
|
|
|
- chartData[0].data.push([convertMonth(e._id.bulan), data.jumlah_laporan.ditutup + data.jumlah_laporan.dikti + data.jumlah_laporan.lldikti]);
|
|
|
+ console.log(data);
|
|
|
+ chartData[0].data.push([convertMonth(e._id.bulan), e.jumlah_laporan]);
|
|
|
});
|
|
|
}, []);
|
|
|
|