Skip to content

Documentation / @ripl/charts / SankeyChartNodeEvent

Interface: SankeyChartNodeEvent<TData>

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

Payload emitted for Sankey node interaction events.

Type Parameters

Type ParameterDefault type
TDataunknown

Properties

PropertyTypeDescriptionDefined in
data?TDataThe datum from the source SankeyNode, if one was provided.charts/src/charts/sankey.ts:113
idstringThe node's unique id.charts/src/charts/sankey.ts:107
labelstringThe node's display label.charts/src/charts/sankey.ts:109
valuenumberThe node's total flow value.charts/src/charts/sankey.ts:111
xnumberX position of the node's top-centre anchor, in canvas coordinates.charts/src/charts/sankey.ts:103
ynumberY position of the node's top-centre anchor, in canvas coordinates.charts/src/charts/sankey.ts:105