-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[charts] Fix crash when rendering large scatter dataset #18845
New issue
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
[charts] Fix crash when rendering large scatter dataset #18845
Conversation
Deploy preview: https://deploy-preview-18845--material-ui-x.netlify.app/ Bundle size reportTotal Size Change: 🔺+440B(0.00%) - Total Gzip Change: 🔺+1.23KB(+0.03%) Show details for 100 more bundles (22 more not shown)@mui/x-charts-pro/PieChartPro parsed: 🔺+28B(+0.01%) gzip: 🔺+68B(+0.09%) |
CodSpeed Performance ReportMerging #18845 will not alter performanceComparing Summary
Footnotes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we have a test regression test for it?
const minX = Math.min(...(axis.data ?? [])); | ||
const maxX = Math.max(...(axis.data ?? [])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, despite the error thrown, the issue here is probably not a recursion issue, but too many arguments 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah 👍
Sure |
Part of #12960.
Fix an issue where scatter charts with 1 million data points would crash with "Maximum call stack size exceeded".