diff --git a/packages/polaris-viz/src/components/StackedAreaChart/components/StackedAreas/StackedAreas.tsx b/packages/polaris-viz/src/components/StackedAreaChart/components/StackedAreas/StackedAreas.tsx index 7b87bfddf..0a0c2cbd2 100644 --- a/packages/polaris-viz/src/components/StackedAreaChart/components/StackedAreas/StackedAreas.tsx +++ b/packages/polaris-viz/src/components/StackedAreaChart/components/StackedAreas/StackedAreas.tsx @@ -88,6 +88,7 @@ export function StackedAreas({ {stackedValues.map((data, index) => { const dataIsValidForAnimation = !previousStackedValues || + !previousStackedValues[index] || data.length === previousStackedValues[index].length; const AreaComponent = dataIsValidForAnimation ? AnimatedArea : Area;