Skip to content
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 scatter dataset with missing data #15802

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

alexfauquette
Copy link
Member

@alexfauquette alexfauquette commented Dec 9, 2024

Fix #15801

I hesitated to keep undefined values to be able to distinguish undefined and null.
But a scatter point where either x or y is not defined is impossible to represent

Math.min(null, null) // returns 0
Math.min(undefined, null) // returns NaN

If you're ok with the fix I will add a test to prevent future regression

@alexfauquette alexfauquette added bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module! needs cherry-pick The PR should be cherry-picked to master after merge labels Dec 9, 2024
@mui-bot
Copy link

mui-bot commented Dec 9, 2024

Deploy preview: https://deploy-preview-15802--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against bb3a72b

Copy link

codspeed-hq bot commented Dec 9, 2024

CodSpeed Performance Report

Merging #15802 will not alter performance

Comparing alexfauquette:fix-scatter-dataset (bb3a72b) with master (ba7e6d2)

Summary

✅ 6 untouched benchmarks

@JCQuintas JCQuintas added the v7.x label Dec 9, 2024
@alexfauquette alexfauquette merged commit 525e456 into mui:master Dec 9, 2024
21 checks passed
Copy link

github-actions bot commented Dec 9, 2024

Cherry-pick PRs will be created targeting branches: v7.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module! needs cherry-pick The PR should be cherry-picked to master after merge v7.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scatter chart shows nothing if dataset array haves objects do not contains all series points
3 participants