Skip to content

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

remove animation from charts (just annoying)

Carl-Gerhard Lindesvärd33df2e416915
diff --git a/apps/dashboard/src/components/report/chart/ReportAreaChart.tsx b/apps/dashboard/src/components/report/chart/ReportAreaChart.tsx
index e89e35c58..bae2667cd 100644
--- a/apps/dashboard/src/components/report/chart/ReportAreaChart.tsx
+++ b/apps/dashboard/src/components/report/chart/ReportAreaChart.tsx
@@ -89,7 +89,7 @@ export function ReportAreaChart({
<Area
key={serie.name}
type={lineType}
- isAnimationActive={true}
+ isAnimationActive={false}
strokeWidth={2}
dataKey={`${serie.id}:count`}
stroke={color}
diff --git a/apps/dashboard/src/components/report/chart/ReportLineChart.tsx b/apps/dashboard/src/components/report/chart/ReportLineChart.tsx
index 95f9a229c..ddf2e5899 100644
--- a/apps/dashboard/src/components/report/chart/ReportLineChart.tsx
+++ b/apps/dashboard/src/components/report/chart/ReportLineChart.tsx
@@ -100,7 +100,7 @@ export function ReportLineChart({
type={lineType}
key={serie.name}
name={serie.name}
- isAnimationActive={true}
+ isAnimationActive={false}
strokeWidth={2}
dataKey={`${serie.id}:count`}
stroke={getChartColor(serie.index)}
@@ -110,7 +110,7 @@ export function ReportLineChart({
type={lineType}
key={`${serie.name}:prev`}
name={`${serie.name}:prev`}
- isAnimationActive={true}
+ isAnimationActive={false}
strokeWidth={1}
dot={false}
strokeDasharray={'6 6'}
diff --git a/apps/dashboard/src/components/report/chart/ReportPieChart.tsx b/apps/dashboard/src/components/report/chart/ReportPieChart.tsx
index 2c08a94a9..3ba859a44 100644
--- a/apps/dashboard/src/components/report/chart/ReportPieChart.tsx
+++ b/apps/dashboard/src/components/report/chart/ReportPieChart.tsx
@@ -43,7 +43,7 @@ export function ReportPieChart({ data }: ReportPieChartProps) {
data={pieData}
innerRadius={height / 4}
outerRadius={height / 2.5}
- isAnimationActive={true}
+ isAnimationActive={false}
label={renderLabel}
>
{pieData.map((item) => {
diff --git a/apps/dashboard/src/components/report/funnel/Funnel.tsx b/apps/dashboard/src/components/report/funnel/Funnel.tsx
index 5a96ce8e4..b683eb938 100644
--- a/apps/dashboard/src/components/report/funnel/Funnel.tsx
+++ b/apps/dashboard/src/components/report/funnel/Funnel.tsx
@@ -101,7 +101,7 @@ export function FunnelSteps({
]}
innerRadius={height / 3}
outerRadius={height / 2 - 10}
- isAnimationActive={true}
+ isAnimationActive={false}
nameKey="label"
dataKey="value"
>