-
Notifications
You must be signed in to change notification settings - Fork 18
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
[tools] Migrate from recharts to MUI X Charts #147
Conversation
This PR is being deployed to Railway 🚅 mui-public/tools-public: ◻️ REMOVED |
89f64b9
to
4e7c27e
Compare
4e7c27e
to
5c58755
Compare
valueFormatter: ({ value }) => | ||
Intl.NumberFormat('en', { notation: 'compact' }).format(value), |
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.
I was expecting
valueFormatter: ({ value }) => | |
Intl.NumberFormat('en', { notation: 'compact' }).format(value), | |
valueFormatter: (value) => | |
Intl.NumberFormat('en', { notation: 'compact' }).format(value), |
per this demo: https://next.mui.com/x/react-charts/tooltip/#formatting, strange.
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.
That seems in line with the datagrid valueFormatter
5c58755
to
5c40435
Compare
5c40435
to
b6bafb9
Compare
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.
Nice to see it. I've nothing to add 👍
I was curious to see how we stack up compared to Recharts. A big reason why MUI X Charts should exist is the belief that work on Recharts deserves to be carried on going forward, but it's not happening. So for this to happen, the migration experience should be easy.
Before: https://tools-public.mui.com/prod/pages/npmVersion?package=next
Screen.Recording.2024-02-11.at.14.01.34.mov
After: https://mui-publictools-public-mui-public-pr-147.up.railway.app/prod/pages/npmVersion?package=next
Screen.Recording.2024-02-11.at.16.34.51.mov