The sunburst is a hierarchical chart, similar to a Treemap, plotted in polar coordinates. Sunburst charts effectively convey the hierarchical relationships and proportions within each level.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/recharts/recharts/llms.txt
Use this file to discover all available pages before exploring further.
Props
The source data. Each element should be an object. Use the
dataKey prop to specify which properties to use. If the children property is present on an element, it will be treated as a nested sunburst.The width of chart container. Can be a number or a percent string like “100%”.
The height of chart container. Can be a number or a percent string like “100%”.
Decides how to extract value from the data.
Name represents each sector in the tooltip. Can be a string key name, number index, or function that receives the data object and returns the name.
The x-coordinate of center in pixels. If undefined, it will be set to half of the chart width.
The y-coordinate of center in pixels. If undefined, it will be set to half of the chart height.
The radius of the inner circle at the center of the chart.
Outermost edge of the chart. Defaults to the max possible radius for a circle inscribed in the chart container.
Angle in degrees from which the chart should start.
Angle, in degrees, at which the chart should end.
Distance between sectors.
Padding between each hierarchical level.
The fill color of sunburst sectors.
The stroke color of sunburst sectors.
An object with svg text options to control the appearance of the chart labels.
If true, then it will listen to container size changes and adapt the SVG chart accordingly.
The customized event handler of mouseenter on a sector.
The customized event handler of mouseleave on a sector.
The customized event handler of click on a sector.
CSS class name for the chart container.
Inline CSS styles for the chart container.
The unique id of chart.
Decides the time interval to throttle events.