remove animation from charts (just annoying)

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-05-28 14:33:37 +02:00
parent 2043e72972
commit 33df2e4169
4 changed files with 5 additions and 5 deletions

View File

@@ -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}

View File

@@ -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'}

View File

@@ -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) => {

View File

@@ -101,7 +101,7 @@ export function FunnelSteps({
]}
innerRadius={height / 3}
outerRadius={height / 2 - 10}
isAnimationActive={true}
isAnimationActive={false}
nameKey="label"
dataKey="value"
>