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 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:113 |
id | string | The node's unique id. | charts/src/charts/sankey.ts:107 |
label | string | The node's display label. | charts/src/charts/sankey.ts:109 |
value | number | The node's total flow value. | charts/src/charts/sankey.ts:111 |
x | number | X position of the node's top-centre anchor, in canvas coordinates. | charts/src/charts/sankey.ts:103 |
y | number | Y position of the node's top-centre anchor, in canvas coordinates. | charts/src/charts/sankey.ts:105 |