Skip to content

Documentation / @ripl/charts / SankeyNode

Interface: SankeyNode<TData> ​

Defined in: charts/src/charts/sankey.ts:97

A node in a Sankey diagram, with an optional typed datum carried through to node events.

Type Parameters ​

Type ParameterDefault type
TDataunknown

Properties ​

PropertyTypeDescriptionDefined in
color?stringOptional color override for the node (otherwise a palette color is generated).charts/src/charts/sankey.ts:103
data?TDataArbitrary datum carried through to node interaction events.charts/src/charts/sankey.ts:105
idstringUnique identifier for the node, referenced by link source/target.charts/src/charts/sankey.ts:99
labelstringDisplay label shown beside the node.charts/src/charts/sankey.ts:101