Skip to content

Documentation / @ripl/charts / SankeyChartNodeEvent

Interface: SankeyChartNodeEvent<TData> ​

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

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:139
idstringThe node's unique id.charts/src/charts/sankey.ts:133
labelstringThe node's display label.charts/src/charts/sankey.ts:135
valuenumberThe node's total flow value.charts/src/charts/sankey.ts:137
xnumberX position of the node's top-center anchor, in canvas coordinates.charts/src/charts/sankey.ts:129
ynumberY position of the node's top-center anchor, in canvas coordinates.charts/src/charts/sankey.ts:131