disable more chart animations

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-05-28 14:38:00 +02:00
parent 33df2e4169
commit 57404fbf9b
4 changed files with 6 additions and 0 deletions

View File

@@ -68,6 +68,7 @@ const Chart = ({ data }: Props) => {
stroke={getChartColor(0)}
strokeWidth={2}
fill={`url(#bg)`}
isAnimationActive={false}
/>
<XAxis
dataKey="days"

View File

@@ -109,18 +109,21 @@ const Chart = ({ data }: Props) => {
stroke={getChartColor(0)}
strokeWidth={2}
fill={`url(#dau)`}
isAnimationActive={false}
/>
<Area
dataKey="wau"
stroke={getChartColor(1)}
strokeWidth={2}
fill={`url(#wau)`}
isAnimationActive={false}
/>
<Area
dataKey="mau"
stroke={getChartColor(2)}
strokeWidth={2}
fill={`url(#mau)`}
isAnimationActive={false}
/>
<XAxis
dataKey="date"

View File

@@ -83,6 +83,7 @@ const Chart = ({ data }: Props) => {
stroke={getChartColor(0)}
strokeWidth={2}
fill={`url(#bg)`}
isAnimationActive={false}
/>
<XAxis
axisLine={false}

View File

@@ -82,6 +82,7 @@ export function MetricCard({
fillOpacity={1}
stroke={graphColors}
strokeWidth={2}
isAnimationActive={false}
/>
</AreaChart>
)}