Description
Summary
This charts library has a dependency on Material UI and Emotion https://unpkg.com/browse/@mui/x-charts@7.0.0-beta.4/package.json
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.0",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
which discredit it as a viable alternative to Recharts if you are not already in the MUI ecosystem.
Examples
Once we fix mui/material-ui#40594 we should able to only have a dependency on MUI System/Pigment CSS, which is equivalent to adazzle/react-data-grid#3407.
This issue is potentially a duplicate of #11123. But not necessarily, we could see this one as the extension of mui/material-ui#40594 in MUI X.
Motivation
See:
![SCR-20240227-bbzr](https://private-user-images.githubusercontent.com/3165635/307981957-7f63ff8c-20fd-43f5-b9da-fe77e3f4409d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzQxNjYsIm5iZiI6MTczOTA3Mzg2NiwicGF0aCI6Ii8zMTY1NjM1LzMwNzk4MTk1Ny03ZjYzZmY4Yy0yMGZkLTQzZjUtYjlkYS1mZTc3ZTNmNDQwOWQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDlUMDQwNDI2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Yzg3N2M4YWUzMjY3YjYwZThkZDZmNzkzMGFjZDc3ODEwYmM0MTdlZTg2MDQ5NDJmYjg2ZTgyNjA2YzJlNTA5ZCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.fvsRxEi6o5zkCDrjgSRzcsNaHZZmE9hnDCWwyz3iL40)
https://ably.com/blog/top-react-chart-libraries#mui-x-charts.
This library seamlessly integrates with other MUI components and best suits those already invested in the MUI ecosystem.
It sounds about right. No engineers in their right mind should add MUI X Charts as a dependency unless they already use Emotion.
Search keywords: Material UI dependency