chore: update chart and chart text color

This commit is contained in:
ValdiANS
2026-01-21 14:38:21 +07:00
parent 362ae16c7d
commit 426b6bfc85
@@ -83,10 +83,7 @@ export function Dashboard() {
dateFrom && dateTo
? `${DailyChecklistApi.basePath}/summary?date_from=${dateFrom}&date_to=${dateTo}&kandang_id=${kandangFilter === 'ALL' ? '' : kandangFilter}&category=${categoryFilter === 'ALL' ? '' : categoryFilter}`
: '',
httpClientFetcher,
{
keepPreviousData: true,
}
httpClientFetcher
);
const { options: kandangOptions, isLoadingOptions: isLoadingKandangs } =
@@ -311,14 +308,14 @@ export function Dashboard() {
<Bar
dataKey='remaining'
stackId='a'
fill='#E5E7EB'
fill='#878c96'
radius={[4, 4, 0, 0]}
>
{chartData?.map((entry, index) => (
<Cell
key={`cell-remaining-${index}`}
fill={`${entry.color}33`}
opacity={0.3}
fill={`${entry.color}70`}
opacity={0.7}
/>
))}
</Bar>
@@ -370,7 +367,7 @@ export function Dashboard() {
<tbody>
{employeePerformance?.map((emp, index) => (
<tr
key={emp.employee_id}
key={index}
className={
index % 2 === 0 ? 'bg-white' : 'bg-gray-50/50'
}