IChartSankeyNode
interface
Chart
Internal node descriptor produced by the Sankey layout engine. All coordinates are in SVG-user-unit space. Nodes are inferred from the union of all from and to strings in IChartSankeyDatum; column is assigned by topological depth (Kahn's algorithm).
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.
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.
- namerequisstring
- Unique node name (inferred from from / to values).
- columnrequisnumber
- Column index (0-based topological depth).
- valuerequisnumber
- Total flow value (max of incoming and outgoing sums).
- formattedrequisstring
- Pre-formatted value string.
- colorrequisstring
- Resolved CSS colour string.
- xrequisnumber
- SVG x coordinate of the node rect's left edge.
- yrequisnumber
- SVG y coordinate of the node rect's top edge.
- heightrequisnumber
- Node rect height in SVG user units, proportional to value.
- outgoingOffsetrequisnumber
- Accumulated outgoing y offset (used during link placement).
- incomingOffsetrequisnumber
- Accumulated incoming y offset (used during link placement).
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Internal Sankey node descriptor