upd: fix graphic data

This commit is contained in:
2026-04-16 11:47:19 +08:00
parent 6ce7c93106
commit e6dfac1ffe
2 changed files with 37 additions and 42 deletions

View File

@@ -110,49 +110,20 @@ function ActivityChart({ villageId }: { villageId: string }) {
h={280}
data={data}
dataKey="label"
series={[{ name: 'aktivitas', color: '#2563EB' }]}
series={[{ name: 'activity', color: '#2563EB' }]}
curveType="monotone"
withTooltip
withDots
tickLine="none"
gridAxis="x"
tooltipAnimationDuration={150}
withTooltip={true}
withDots={true}
withPointLabels={false}
withXAxis={true}
withYAxis={true}
fillOpacity={1}
tooltipAnimationDuration={150}
tooltipProps={{
allowEscapeViewBox: { x: true, y: false },
}}
areaProps={{
strokeWidth: 2.5,
fill: 'url(#villageAreaGrad)',
stroke: '#2563EB',
filter: 'drop-shadow(0 4px 12px rgba(37,99,235,0.3))',
}}
dotProps={{
r: 4,
strokeWidth: 2,
stroke: '#2563EB',
fill: 'white',
style: { cursor: 'pointer' },
}}
activeDotProps={{
r: 6,
strokeWidth: 2,
stroke: '#2563EB',
fill: '#2563EB',
children: null,
}}
>
<defs>
<linearGradient id="villageAreaGrad" x1="0" y1="0" x2="0" y2="1">
<stop offset="0%" stopColor="#2563EB" stopOpacity={0.35} />
<stop offset="75%" stopColor="#7C3AED" stopOpacity={0.08} />
<stop offset="100%" stopColor="#7C3AED" stopOpacity={0} />
</linearGradient>
</defs>
</AreaChart>
/>
)}
</Paper>
)