Props
object
required
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.number | string
The width of chart container. Can be a number or a percent string like “100%”.
number | string
The height of chart container. Can be a number or a percent string like “100%”.
string
default:"'value'"
Decides how to extract value from the data.
string | number | function
default:"'name'"
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.
number
The x-coordinate of center in pixels. If undefined, it will be set to half of the chart width.
number
The y-coordinate of center in pixels. If undefined, it will be set to half of the chart height.
number
default:"50"
The radius of the inner circle at the center of the chart.
number
Outermost edge of the chart. Defaults to the max possible radius for a circle inscribed in the chart container.
number
default:"0"
Angle in degrees from which the chart should start.
number
default:"360"
Angle, in degrees, at which the chart should end.
number
default:"2"
Distance between sectors.
number
default:"2"
Padding between each hierarchical level.
string
default:"'#333'"
The fill color of sunburst sectors.
string
default:"'#FFF'"
The stroke color of sunburst sectors.
object
An object with svg text options to control the appearance of the chart labels.
boolean
default:"false"
If true, then it will listen to container size changes and adapt the SVG chart accordingly.
function
The customized event handler of mouseenter on a sector.
function
The customized event handler of mouseleave on a sector.
function
The customized event handler of click on a sector.
string
CSS class name for the chart container.
CSSProperties
Inline CSS styles for the chart container.
string
The unique id of chart.
number | 'raf'
default:"'raf'"
Decides the time interval to throttle events.