IChartSunburstDatum

interface
Data Visualisation

A single datum node in the sunburst tree. Internal nodes may omit value — it will be auto-computed as the sum of direct children. The children array forms the next ring outward in the chart.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

name
requis
string
Display name for the node, shown in arc labels and the tooltip.
value
number
Numeric value. Optional for internal nodes — if absent it equals the sum of direct children.
color
TIntent | string
Override colour for this specific node. Accepts a design-system intent token or any raw CSS colour string.
children
Array<IChartSunburstDatum>
Child nodes — each child appears in the next ring outward from this node.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Two-level sunburst dataset

typescript