Skip to content

[charts] Remove dependency on Material UI #12219

Open
@oliviertassinari

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://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

Metadata

Assignees

No one assigned

    Labels

    component: chartsThis is the name of the generic UI component, not the React module!performance

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions