import React, { Component, useState, useEffect } from "react"; import { Progress } from "reactstrap"; import Sparkline from "@/components/Common/Sparklines"; import { Container, Row, Col, Card, CardHeader, CardBody } from "reactstrap"; 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"; function CaseProgress({ data, nextButton, prevButton, tahun }) { const ChartBar = { data: [ { // "label": "Complete", color: "#5ab1ef", data: [["Sudah diperiksa", data.evaluasi.hasEvaluasi]], }, { // "label": "In Progress", color: "#52D489", data: [["Belum diperiksa", data.evaluasi.notHasEvaluasi]], }, ], options: { series: { bars: { align: "center", lineWidth: 0, show: true, barWidth: 0.2, fill: 0.9, }, }, grid: { borderColor: "#eee", borderWidth: 1, hoverable: true, backgroundColor: "#fcfcfc", }, tooltip: true, tooltipOpts: { content: (label, x, y) => x + " : " + y, }, xaxis: { tickColor: "#fcfcfc", mode: "categories", }, yaxis: { // position: 'right' or 'left' tickColor: "#eee", }, shadowSize: 0, }, }; 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 ( '