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 Parameter | Default type |
|---|---|
TData | unknown |
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
data? | TData | The datum from the source SankeyNode, if one was provided. | charts/src/charts/sankey.ts:139 |
id | string | The node's unique id. | charts/src/charts/sankey.ts:133 |
label | string | The node's display label. | charts/src/charts/sankey.ts:135 |
value | number | The node's total flow value. | charts/src/charts/sankey.ts:137 |
x | number | X position of the node's top-center anchor, in canvas coordinates. | charts/src/charts/sankey.ts:129 |
y | number | Y position of the node's top-center anchor, in canvas coordinates. | charts/src/charts/sankey.ts:131 |