upd: divisi

Deskripsi:
- input date

- laporan divisi

NoIssues
This commit is contained in:
amel
2025-05-28 16:52:01 +08:00
parent 749afcf0eb
commit 088baec9b0
11 changed files with 353 additions and 61 deletions

View File

@@ -2,7 +2,7 @@ import Styles from "@/constants/Styles";
import { Text, View } from "react-native";
import { PieChart } from "react-native-gifted-charts";
export default function ReportChartProgress() {
export default function ReportChartProgress({ data }: { data: { color: string; text: string; value: number; }[] }) {
const pieData = [
{ value: 54, text: "54%", color: '#177AD5' },
{ value: 40, text: "40%", color: '#92cc76' },
@@ -14,7 +14,7 @@ export default function ReportChartProgress() {
<View style={[Styles.wrapPaper, Styles.contentItemCenter, Styles.mb15]}>
<Text style={[Styles.textSubtitle, Styles.mv15]}>PROGRES KEGIATAN</Text>
<PieChart
data={pieData}
data={data}
showText
showValuesAsTooltipText
textColor="black"