Skip to content

Documentation / @ripl/charts / ForceDirectedNodeEvent

Interface: ForceDirectedNodeEvent<TData>

Defined in: charts/src/charts/force-directed.ts:122

Payload emitted for force-directed node interaction events.

Type Parameters

Type ParameterDefault type
TDataunknown

Properties

PropertyTypeDescriptionDefined in
data?TDataThe datum from the source ForceNetworkNode, if one was provided.charts/src/charts/force-directed.ts:134
idstringThe id of the interacted node.charts/src/charts/force-directed.ts:128
labelstringThe label of the interacted node.charts/src/charts/force-directed.ts:130
valuenumberThe node's size value (its value, or link degree when none was given).charts/src/charts/force-directed.ts:132
xnumberThe x coordinate (in chart pixels) of the node.charts/src/charts/force-directed.ts:124
ynumberThe y coordinate (in chart pixels) of the node.charts/src/charts/force-directed.ts:126