We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding new series to the data prop in the StackedAreaChart breaks it (but removing some series is OK).
data
StackedAreaChart
The chart should not break.
Here the codesandbox link: https://codesandbox.io/p/sandbox/modern-thunder-9fqny3
The exception happens at the test condition here Adding this check solves the issue:
const dataIsValidForAnimation = !previousStackedValues || + !previousStackedValues[index] || data.length === previousStackedValues[index].length;
The text was updated successfully, but these errors were encountered:
Update StackedAreas.tsx
fd0dfc8
fixed issue mentioed in Shopify#1642
No branches or pull requests
Bug summary
Adding new series to the
data
prop in theStackedAreaChart
breaks it (but removing some series is OK).Expected behavior
The chart should not break.
Actual behavior
polaris-stackedArea-crash.mp4
Steps to reproduce the problem
Here the codesandbox link: https://codesandbox.io/p/sandbox/modern-thunder-9fqny3
Solution
The exception happens at the test condition here
Adding this check solves the issue:
const dataIsValidForAnimation = !previousStackedValues || + !previousStackedValues[index] || data.length === previousStackedValues[index].length;
The text was updated successfully, but these errors were encountered: