Skip to content

Documentation / @ripl/charts / ForceNetworkNode

Interface: ForceNetworkNode<TData>

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

A node in a force-directed network.

Type Parameters

Type ParameterDefault type
TDataunknown

Properties

PropertyTypeDescriptionDefined in
color?stringExplicit node colour; falls back to the group/palette colour when omitted.charts/src/charts/force-directed.ts:82
data?TDataArbitrary datum carried through to node interaction events.charts/src/charts/force-directed.ts:84
group?stringOptional grouping — nodes in the same group share a color.charts/src/charts/force-directed.ts:80
idstringUnique identifier for the node, referenced by links and used for data joins.charts/src/charts/force-directed.ts:74
label?stringText shown beneath the node; defaults to the node's id.charts/src/charts/force-directed.ts:76
value?numberOptional magnitude used to size the node; defaults to the node's link degree.charts/src/charts/force-directed.ts:78