Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

disable more chart animations

Carl-Gerhard Lindesvärd57404fbf9b52
diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/chart.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/chart.tsx
index 38b85b958..35c33c8a7 100644
--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/chart.tsx
+++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/last-active-users/chart.tsx
@@ -68,6 +68,7 @@ const Chart = ({ data }: Props) => {
stroke={getChartColor(0)}
strokeWidth={2}
fill={`url(#bg)`}
+ isAnimationActive={false}
/>
<XAxis
dataKey="days"
diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/chart.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/chart.tsx
index 55c1fe46f..a3bcb2968 100644
--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/chart.tsx
+++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/rolling-active-users/chart.tsx
@@ -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"
diff --git a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/chart.tsx b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/chart.tsx
index bda35bf82..e34a1067d 100644
--- a/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/chart.tsx
+++ b/apps/dashboard/src/app/(app)/[organizationSlug]/[projectId]/retention/users-retention-series/chart.tsx
@@ -83,6 +83,7 @@ const Chart = ({ data }: Props) => {
stroke={getChartColor(0)}
strokeWidth={2}
fill={`url(#bg)`}
+ isAnimationActive={false}
/>
<XAxis
axisLine={false}
diff --git a/apps/dashboard/src/components/report/chart/MetricCard.tsx b/apps/dashboard/src/components/report/chart/MetricCard.tsx
index db01305f1..cc77bcd6d 100644
--- a/apps/dashboard/src/components/report/chart/MetricCard.tsx
+++ b/apps/dashboard/src/components/report/chart/MetricCard.tsx
@@ -82,6 +82,7 @@ export function MetricCard({
fillOpacity={1}
stroke={graphColors}
strokeWidth={2}
+ isAnimationActive={false}
/>
</AreaChart>
)}