IChartSankeyDatum

interface
Chart

A single flow datum in the Sankey series. from and to are node name strings — nodes are inferred automatically from the full set of unique names. value must be >= 0. An optional color override accepts a TIntent token or raw CSS colour.

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.

from
requis
string
Source node name.
to
requis
string
Target node name.
value
requis
number
Flow magnitude. Must be >= 0.
color
TIntent | string
Optional per-link colour override. Accepts a design-system intent token or any raw CSS colour string. When absent the source node's colour is used.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Defining flow data for a Sankey diagram

typescript