|
|
@@ -6,46 +6,9 @@ import FlotChart from "@/components/Charts/Flot.js";
|
|
|
import { ChartSpline, ChartArea, ChartBarStacked, ChartDonut, ChartLine } from "@/components/Config/flot.setup.js";
|
|
|
import Datatable from "@/components/Tables/Datatable";
|
|
|
import MorrisChart from "@/components/Charts//Morris";
|
|
|
+import { Button } from "reactstrap";
|
|
|
|
|
|
-const ChartPie = {
|
|
|
- data: [
|
|
|
- {
|
|
|
- label: "Sudah diperiksa",
|
|
|
- color: "#287DAD",
|
|
|
- data: 70,
|
|
|
- },
|
|
|
- {
|
|
|
- label: "Belum diperiksa",
|
|
|
- color: "#52D489",
|
|
|
- data: 40,
|
|
|
- },
|
|
|
- ],
|
|
|
|
|
|
- options: {
|
|
|
- series: {
|
|
|
- pie: {
|
|
|
- show: true,
|
|
|
- innerRadius: 0,
|
|
|
- label: {
|
|
|
- show: true,
|
|
|
- radius: 0.8,
|
|
|
- formatter: function (label, series) {
|
|
|
- return (
|
|
|
- '<div class="flot-pie-label">' +
|
|
|
- //label + ' : ' +
|
|
|
- Math.round(series.percent) +
|
|
|
- "%</div>"
|
|
|
- );
|
|
|
- },
|
|
|
- background: {
|
|
|
- opacity: 0.8,
|
|
|
- color: "#222",
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
-};
|
|
|
|
|
|
function CaseProgress({ data }) {
|
|
|
const ChartBar = {
|
|
|
@@ -57,7 +20,7 @@ function CaseProgress({ data }) {
|
|
|
},
|
|
|
{
|
|
|
// "label": "In Progress",
|
|
|
- color: "#f5994e",
|
|
|
+ color: "#52D489",
|
|
|
data: [["Belum diperiksa", data.evaluasi.notHasEvaluasi]],
|
|
|
},
|
|
|
],
|
|
|
@@ -93,25 +56,63 @@ function CaseProgress({ data }) {
|
|
|
shadowSize: 0,
|
|
|
},
|
|
|
};
|
|
|
- // const chartdata = [
|
|
|
- // { y: "Delegasi DIKTI", a: 100 },
|
|
|
- // { y: "Delegasi LLDIKTI", b: 70 },
|
|
|
- // { y: "Ditutup", c: 50 }
|
|
|
- // ]
|
|
|
|
|
|
- // const barOptions = {
|
|
|
- // element: 'morris-bar',
|
|
|
- // xkey: 'y',
|
|
|
- // ykeys: ["a", "b", "c"],
|
|
|
- // labels: ["Ditindaklanjuti LLDIKTI", "Ditindaklanjuti DIKTI", "Ditutup"],
|
|
|
- // xLabelMargin: 2,
|
|
|
- // barColors: ['#287DAD', '#52D489', '#FD4233'],
|
|
|
- // resize: true
|
|
|
- // }
|
|
|
+
|
|
|
+ const ChartPie = {
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ label: "Sudah diperiksa",
|
|
|
+ color: "#287DAD",
|
|
|
+ data: [data.evaluasi.hasEvaluasi],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "Belum diperiksa",
|
|
|
+ color: "#52D489",
|
|
|
+ data: [data.evaluasi.notHasEvaluasi],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+
|
|
|
+ options: {
|
|
|
+ series: {
|
|
|
+ pie: {
|
|
|
+ show: true,
|
|
|
+ innerRadius: 0,
|
|
|
+ label: {
|
|
|
+ show: true,
|
|
|
+ radius: 0.8,
|
|
|
+ formatter: function (label, series) {
|
|
|
+ return (
|
|
|
+ '<div class="flot-pie-label">' +
|
|
|
+ //label + ' : ' +
|
|
|
+ Math.round(series.percent) +
|
|
|
+ "%</div>"
|
|
|
+ );
|
|
|
+ },
|
|
|
+ background: {
|
|
|
+ opacity: 0.8,
|
|
|
+ color: "#222",
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ },
|
|
|
+ };
|
|
|
|
|
|
return (
|
|
|
<div className="card b">
|
|
|
<div className="card-body bb">
|
|
|
+ <div className="margin-botton-20 text-tahun">
|
|
|
+ <Button className="float-left button-hidden icon-next">
|
|
|
+ <img src="/static/img/previous.png"></img>
|
|
|
+ </Button>
|
|
|
+ <Button className="float-left button-hidden icon-next">
|
|
|
+ <img src="/static/img/next.png"></img>
|
|
|
+ </Button>
|
|
|
+ <b className="text-tahun">Tahun 2022 </b>
|
|
|
+ <Button className="float-right button-hidden icon-eksport">
|
|
|
+ <img src="/static/img/Eksport.png"></img>
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
<div className="header-1">
|
|
|
<h2 className="card-title-1">Perkembangan</h2>
|
|
|
</div>
|
|
|
@@ -119,12 +120,12 @@ function CaseProgress({ data }) {
|
|
|
<FlotChart options={ChartBar.options} data={ChartBar.data} className="flot-chart" height="200px" />
|
|
|
</div>
|
|
|
</div>
|
|
|
- {/* <div className="card-body">
|
|
|
- <div className="header-1">
|
|
|
- <h2 className="card-title-1">Rekapitulasi</h2>
|
|
|
- </div>
|
|
|
- <FlotChart options={ChartPie.options} data={ChartPie.data} className="flot-chart" height="250px" />
|
|
|
- </div> */}
|
|
|
+ <div className="card-body">
|
|
|
+ <div className="header-1">
|
|
|
+ <h2 className="card-title-1">Rekapitulasi</h2>
|
|
|
+ </div>
|
|
|
+ <FlotChart options={ChartPie.options} data={ChartPie.data} className="flot-chart" height="250px" />
|
|
|
+ </div>
|
|
|
</div>
|
|
|
);
|
|
|
}
|