fix bar
This commit is contained in:
parent
ff15f97105
commit
3878dc455f
|
|
@ -221,7 +221,7 @@ export default function AbsensiPage() {
|
||||||
...item,
|
...item,
|
||||||
countPercent: item.workdays > 0 ? (item.count / item.workdays) * 100 : 0,
|
countPercent: item.workdays > 0 ? (item.count / item.workdays) * 100 : 0,
|
||||||
absentPercent: item.workdays > 0 ? (item.absent / item.workdays) * 100 : 0
|
absentPercent: item.workdays > 0 ? (item.absent / item.workdays) * 100 : 0
|
||||||
}))}
|
})).sort((a, b) => b.countPercent - a.countPercent)}
|
||||||
margin={{ top: 20, right: 30, left: 20, bottom: 5 }}
|
margin={{ top: 20, right: 30, left: 20, bottom: 5 }}
|
||||||
>
|
>
|
||||||
{/* <CartesianGrid strokeDasharray="3 3" /> */}
|
{/* <CartesianGrid strokeDasharray="3 3" /> */}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue