Skip to content

Documentation / @ripl/charts / SunburstNode

Interface: SunburstNode<TData> ​

Defined in: charts/src/charts/sunburst.ts:70

A node in a sunburst hierarchy with optional nested children and an optional typed datum.

Type Parameters ​

Type ParameterDefault type
TDataunknown

Properties ​

PropertyTypeDescriptionDefined in
children?SunburstNode<TData>[]Child nodes rendered in the next ring outward, within this node's angular range.charts/src/charts/sunburst.ts:80
color?stringOptional color override; child nodes inherit their parent's color when omitted.charts/src/charts/sunburst.ts:78
data?TDataArbitrary datum carried through to segment interaction events.charts/src/charts/sunburst.ts:82
idstringUnique identifier for the node.charts/src/charts/sunburst.ts:72
labelstringDisplay label shown in the legend and tooltips.charts/src/charts/sunburst.ts:74
valuenumberThe node's numeric value, which determines its angular extent.charts/src/charts/sunburst.ts:76