upd: grafik

This commit is contained in:
2026-04-16 10:19:51 +08:00
parent f446aec734
commit 6ce7c93106

View File

@@ -110,14 +110,20 @@ function ActivityChart({ villageId }: { villageId: string }) {
h={280} h={280}
data={data} data={data}
dataKey="label" dataKey="label"
series={[{ name: 'aktivitas', color: '#2563EB', label: 'Activity' }]} series={[{ name: 'aktivitas', color: '#2563EB' }]}
curveType="monotone" curveType="monotone"
withTooltip withTooltip
withDots withDots
tickLine="none" tickLine="none"
gridAxis="x" gridAxis="x"
tooltipAnimationDuration={150} tooltipAnimationDuration={150}
withPointLabels={false}
withXAxis={true}
withYAxis={true}
fillOpacity={1} fillOpacity={1}
tooltipProps={{
allowEscapeViewBox: { x: true, y: false },
}}
areaProps={{ areaProps={{
strokeWidth: 2.5, strokeWidth: 2.5,
fill: 'url(#villageAreaGrad)', fill: 'url(#villageAreaGrad)',
@@ -129,6 +135,14 @@ function ActivityChart({ villageId }: { villageId: string }) {
strokeWidth: 2, strokeWidth: 2,
stroke: '#2563EB', stroke: '#2563EB',
fill: 'white', fill: 'white',
style: { cursor: 'pointer' },
}}
activeDotProps={{
r: 6,
strokeWidth: 2,
stroke: '#2563EB',
fill: '#2563EB',
children: null,
}} }}
> >
<defs> <defs>