data
RequiredDescription
Chart data.
Type
CellProps[]Leave Yamada UI a star
StarPieChart is a component for drawing pie charts to compare multiple sets of data.
Description
Chart data.
Type
CellProps[]Description
Props for the cell.
Type
Partial<CellProps>Description
Props passed down to recharts PieChart component.
Type
PieChartPropsDescription
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"Description
Props passed down to recharts ResponsiveContainer component.
Type
ResponsiveContainerPropsDescription
Controls angle at which chart ends.
Type
numberDefault
-270Description
Controls fill opacity of all pies.
Type
number | [number, number]Default
1Description
Controls innerRadius of the chart segments.
If it is a number, it is the width of the radius.
For example, 60 means the radius is 60px and the diameter is 120px.
Type
string | numberDefault
'0%'Description
Determines whether labels should be displayed as percentages.
Deprecated
Use percent instead.
Type
booleanDefault
falseDescription
A function to format labels.
Type
(value: number) => stringDescription
Distance between chart and label.
Type
numberDescription
Props passed down to recharts 'Legend' component.
Type
LegendPropsDescription
Controls thickness of the chart segments. If it is a number, it is calculated as px.
If it is a number, it is the width of the radius.
For example, 60 means the radius is 60px and the diameter is 120px.
Type
string | numberDefault
'80%'Description
Controls padding between segments.
Type
numberDefault
0Description
Determines whether labels should be displayed as percentages.
Type
booleanDefault
falseDescription
Props for the pie.
Type
Partial<PieProps>Description
The size of the PieChart.
Type
"sm" | "md" | "lg"Default
"md"Description
Controls angle at which chart starts.
Type
numberDefault
90Description
Stroke width for the chart pies.
Type
numberDefault
1Description
Specifies the duration of animation, the unit of this option is ms.
Type
numberDefault
0Description
Determines which data is displayed in the tooltip.
Type
TooltipDataSourceTypeDefault
'all'Description
Props passed down to recharts 'Tooltip' component.
Type
TooltipPropsDescription
Unit displayed next to each value in tooltip.
Type
stringDescription
A function to format values on inside the tooltip.
Type
(value: any) => stringDescription
The variant of the PieChart.
Type
stringDescription
Determines whether segments labels should have lines that connect the segment with the label.
Type
booleanDefault
falseDescription
Determines whether each segment should have associated label.
Type
booleanDefault
falseDescription
If true, legend is visible.
Type
booleanDefault
falseDescription
If true, tooltip is visible.
Type
booleanDefault
trueType
stringType
numberType
Partial<CellProps>Edit this page on GitHub