data
RequiredDescription
Chart data.
Type
CellProps[]
Leave Yamada UI a star
StarDonutChart
is a component for drawing donut 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
PieChartProps
Description
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
ResponsiveContainerProps
Description
Controls angle at which chart ends.
Type
number
Default
-270
Description
Controls fill opacity of all pies.
Type
number | [number, number]
Default
1
Description
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 | number
Default
'0%'
Description
Determines whether labels should be displayed as percentages.
Deprecated
Use percent
instead.
Type
boolean
Default
false
Description
A function to format labels.
Type
(value: number) => string
Description
Distance between chart and label.
Type
number
Description
Props passed down to recharts 'Label' component.
Type
LabelProps
Description
Props passed down to recharts 'Legend' component.
Type
LegendProps
Description
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 | number
Default
'80%'
Description
Controls padding between segments.
Type
number
Default
0
Description
Determines whether labels should be displayed as percentages.
Type
boolean
Default
false
Description
Props for the pie.
Type
Partial<PieProps>
Description
The size of the DonutChart.
Type
"sm" | "md" | "lg"
Default
"md"
Description
Controls angle at which chart starts.
Type
number
Default
90
Description
Stroke width for the chart pies.
Type
number
Default
1
Description
Specifies the duration of animation, the unit of this option is ms.
Type
number
Default
0
Description
Determines which data is displayed in the tooltip.
Type
TooltipDataSourceType
Default
'all'
Description
Props passed down to recharts 'Tooltip' component.
Type
TooltipProps
Description
Unit displayed next to each value in tooltip.
Type
string
Description
A function to format values on inside the tooltip.
Type
(value: any) => string
Description
The variant of the DonutChart.
Type
string
Description
Determines whether segments labels should have lines that connect the segment with the label.
Type
boolean
Default
false
Description
Determines whether each segment should have associated label.
Type
boolean
Default
false
Description
If true
, legend is visible.
Type
boolean
Default
false
Description
If true
, tooltip is visible.
Type
boolean
Default
true
Edit this page on GitHub