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] Adjusted defaultizeValueFormatter util to accept an optional series.valueFormatter value #11144

Merged

Conversation

michelengelen
Copy link
Member

@michelengelen michelengelen commented Nov 22, 2023


slightly changes the way the series gets spread.
Because when you had a valueFormatter on the series that was simply undefined the default one did not get added, since it technically was defined (even if its value was undefined).

It also adds the simple isFunction util to the charts package

Fixes #11111

@michelengelen michelengelen added bug 🐛 Something doesn't work needs cherry-pick The PR should be cherry-picked to master after merge component: charts This is the name of the generic UI component, not the React module! labels Nov 22, 2023
@michelengelen michelengelen requested a review from a team November 22, 2023 14:18
@michelengelen michelengelen self-assigned this Nov 22, 2023
@mui-bot
Copy link

mui-bot commented Nov 22, 2023

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

Generated by 🚫 dangerJS against 65f4221

michelengelen and others added 2 commits November 27, 2023 14:01
Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
@michelengelen michelengelen enabled auto-merge (squash) November 27, 2023 14:19
@michelengelen michelengelen merged commit 74b8761 into mui:next Nov 27, 2023
15 checks passed
michelengelen added a commit to michelengelen/mui-x that referenced this pull request Nov 27, 2023
…al `series.valueFormatter` value (mui#11144)

Signed-off-by: Michel Engelen <32863416+michelengelen@users.noreply.github.com>
Co-authored-by: Alexandre Fauquette <45398769+alexfauquette@users.noreply.github.com>
@michelengelen michelengelen deleted the 11111/fixed-defaultizeValueFormatter branch November 29, 2023 10:32
@micmcg
Copy link

micmcg commented Dec 1, 2023

Thank you!

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Charts: Series valueFormatter is called even when it is undefined
4 participants