mui / mui-toolpad

Toolpad: Full stack components and low-code builder for dashboards and internal apps.
https://mui.com/toolpad/
MIT License
940 stars 236 forks source link

Pie Chart component #2615

Open apedroferreira opened 12 months ago

apedroferreira commented 12 months ago

Summary 💡

We should add a component to create pie charts, using @mui/x-charts.

I believe this should be a separate component from the already existing Chart component, as unlike in that component it does not make sense to stack a pie chart with any other type of chart. But we could also discuss whether it makes sense to still use the same Chart component for this.

It should function in a similar way to the main Chart component in terms of prop controls, for consistency.

Should include some benchmarking to identify some more ideas/opportunities.

As an initial step, we could migrate the PieChart custom component in https://github.com/mui/mui-public/blob/master/tools-public/toolpad/components/PieChart.tsx to use @mui/x-charts instead of recharts too.

Examples 🌈

No response

Motivation 🔦

No response

Janpot commented 6 months ago