data | any[]
| -
| |
config | ChartConfig
| -
| Chart configuration for colors and labels |
dataKey | string
| -
| The key to use for the pie values |
nameKey | string
| 'name'
| The key to use for the category names |
innerRadius | number
| 60
| Inner radius of the pie (for donut charts). Defaults to 60. |
outerRadius | number
| 90
| Outer radius of the pie. Defaults to 90. |
cornerRadius | number
| 6
| Corner radius of the pie segments. Defaults to 6. |
paddingAngle | number
| 4
| Padding angle between segments. Defaults to 4. |
showLegend | boolean
| true
| Whether to show a legend. Defaults to true. |
legendPosition | "right" | "bottom"
| 'bottom'
| Position of the legend. Defaults to 'bottom'. |
pieChartProps | any
| -
| Any additional props to pass to the Recharts PieChart component |
className | string
| -
| |
style | React.CSSProperties
| -
| |
title | React.ReactNode
| -
| |
actions | React.ReactNode
| -
| Actions to display in the header (e.g. IconButton) |
footer | React.ReactNode
| -
| Content to display below the chart |
subtitle | string
| -
| Optional subtitle or description |
loading | boolean
| false
| |
appearance | WidgetAppearance
| 'outlined'
| |
padding | string | number
| -
| Widget padding (default: 16px) |
chartHeight | string | number
| 300
| Height of the chart container |