perf: reduce chart animation from 1100ms to 400ms — shorter main thread block

This commit is contained in:
Usman Baig
2026-03-26 11:52:29 +01:00
parent 952cebc59a
commit ef3edd963a

View File

@@ -431,6 +431,7 @@ export default function Chart({
xDataKey="dateObj"
aspectRatio="2.5 / 1"
margin={{ top: 20, right: 20, bottom: 40, left: 50 }}
animationDuration={400}
>
<VisxGrid horizontal vertical={false} stroke="var(--chart-grid)" strokeDasharray="4,4" />
<VisxArea