Skip to content

Commit bd7fb8f

Browse files
committed
fix: disable recharts animation on monitoring charts
1 parent e801b6c commit bd7fb8f

13 files changed

Lines changed: 18 additions & 0 deletions

‎apps/dokploy/components/dashboard/monitoring/free/container/docker-block-chart.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,15 @@ export const DockerBlockChart = ({ accumulativeData }: Props) => {
8585
/>
8686
<Area
8787
type="monotone"
88+
isAnimationActive={false}
8889
dataKey="readMb"
8990
stroke="var(--color-readMb)"
9091
fill="url(#fillBlockRead)"
9192
strokeWidth={2}
9293
/>
9394
<Area
9495
type="monotone"
96+
isAnimationActive={false}
9597
dataKey="writeMb"
9698
stroke="var(--color-writeMb)"
9799
fill="url(#fillBlockWrite)"

‎apps/dokploy/components/dashboard/monitoring/free/container/docker-cpu-chart.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export const DockerCpuChart = ({ accumulativeData }: Props) => {
6969
/>
7070
<Area
7171
type="monotone"
72+
isAnimationActive={false}
7273
dataKey="usage"
7374
stroke="var(--color-usage)"
7475
fill="url(#fillCpu)"

‎apps/dokploy/components/dashboard/monitoring/free/container/docker-disk-chart.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export const DockerDiskChart = ({ accumulativeData, diskTotal }: Props) => {
7171
/>
7272
<Area
7373
type="monotone"
74+
isAnimationActive={false}
7475
dataKey="usedGb"
7576
stroke="var(--color-usedGb)"
7677
fill="url(#fillDiskUsed)"

‎apps/dokploy/components/dashboard/monitoring/free/container/docker-memory-chart.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export const DockerMemoryChart = ({
7575
/>
7676
<Area
7777
type="monotone"
78+
isAnimationActive={false}
7879
dataKey="usage"
7980
stroke="var(--color-usage)"
8081
fill="url(#fillMemory)"

‎apps/dokploy/components/dashboard/monitoring/free/container/docker-network-chart.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ export const DockerNetworkChart = ({ accumulativeData }: Props) => {
8181
/>
8282
<Area
8383
type="monotone"
84+
isAnimationActive={false}
8485
dataKey="inMB"
8586
stroke="var(--color-inMB)"
8687
fill="url(#fillNetIn)"
8788
strokeWidth={2}
8889
/>
8990
<Area
9091
type="monotone"
92+
isAnimationActive={false}
9193
dataKey="outMB"
9294
stroke="var(--color-outMB)"
9395
fill="url(#fillNetOut)"

‎apps/dokploy/components/dashboard/monitoring/paid/container/container-block-chart.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export const ContainerBlockChart = ({ data }: Props) => {
154154
name="Write"
155155
dataKey="write"
156156
type="monotone"
157+
isAnimationActive={false}
157158
fill="url(#fillWrite)"
158159
stroke="hsl(142, 71%, 45%)"
159160
strokeWidth={2}
@@ -163,6 +164,7 @@ export const ContainerBlockChart = ({ data }: Props) => {
163164
name="Read"
164165
dataKey="read"
165166
type="monotone"
167+
isAnimationActive={false}
166168
fill="url(#fillRead)"
167169
stroke="hsl(217, 91%, 60%)"
168170
strokeWidth={2}

‎apps/dokploy/components/dashboard/monitoring/paid/container/container-cpu-chart.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export const ContainerCPUChart = ({ data }: Props) => {
111111
name="CPU"
112112
dataKey="cpu"
113113
type="monotone"
114+
isAnimationActive={false}
114115
fill="url(#fillCPU)"
115116
stroke="hsl(var(--chart-1))"
116117
strokeWidth={2}

‎apps/dokploy/components/dashboard/monitoring/paid/container/container-memory-chart.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export const ContainerMemoryChart = ({ data }: Props) => {
132132
name="Memory"
133133
dataKey="memory"
134134
type="monotone"
135+
isAnimationActive={false}
135136
fill="url(#fillMemory)"
136137
stroke="hsl(var(--chart-2))"
137138
strokeWidth={2}

‎apps/dokploy/components/dashboard/monitoring/paid/container/container-network-chart.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export const ContainerNetworkChart = ({ data }: Props) => {
161161
name="Input"
162162
dataKey="input"
163163
type="monotone"
164+
isAnimationActive={false}
164165
fill="url(#fillInput)"
165166
stroke="hsl(var(--chart-3))"
166167
strokeWidth={2}
@@ -169,6 +170,7 @@ export const ContainerNetworkChart = ({ data }: Props) => {
169170
name="Output"
170171
dataKey="output"
171172
type="monotone"
173+
isAnimationActive={false}
172174
fill="url(#fillOutput)"
173175
stroke="hsl(var(--chart-4))"
174176
strokeWidth={2}

‎apps/dokploy/components/dashboard/monitoring/paid/servers/cpu-chart.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ export function CPUChart({ data }: CPUChartProps) {
9898
name="CPU"
9999
dataKey="cpu"
100100
type="monotone"
101+
isAnimationActive={false}
101102
fill="url(#fillCPU)"
102103
stroke="hsl(var(--chart-1))"
103104
strokeWidth={2}

0 commit comments

Comments
 (0)