Skip to content

Documentation / @ripl/charts / ForceNetworkNode

Interface: ForceNetworkNode<TData> ​

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

A node in a force-directed network.

Type Parameters ​

Type ParameterDefault type
TDataunknown

Properties ​

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