Skip to content

Documentation / @ripl/charts / SankeyNode

Interface: SankeyNode<TData>

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

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 colour override for the node (otherwise a palette colour is generated).charts/src/charts/sankey.ts:81
data?TDataArbitrary datum carried through to node interaction events.charts/src/charts/sankey.ts:83
idstringUnique identifier for the node, referenced by link source/target.charts/src/charts/sankey.ts:77
labelstringDisplay label shown beside the node.charts/src/charts/sankey.ts:79