Skip to content

Documentation / @ripl/charts / ForceDirectedChartOptions

Interface: ForceDirectedChartOptions<TData>

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

Options for configuring a ForceDirectedChart.

Extends

Type Parameters

Type ParameterDefault type
TDataunknown

Properties

PropertyTypeDescriptionInherited fromDefined in
animation?boolean | Partial<ChartAnimationOptions>Animation configuration, or a boolean toggling all transitions. See ChartAnimationOptions.BaseChartOptions.animationcharts/src/core/chart.ts:89
autoRender?booleanWhether the chart renders automatically on construction and after every Chart.update. Defaults to true.BaseChartOptions.autoRendercharts/src/core/chart.ts:83
centerStrength?numberStrength pulling all nodes toward the layout centre.-charts/src/charts/force-directed.ts:112
charge?numberForce tuning.-charts/src/charts/force-directed.ts:106
format?ValueFormatInputFormat applied to node/link values shown as text (e.g. tooltips).-charts/src/charts/force-directed.ts:118
iterations?numberNumber of simulation iterations run before the layout is drawn.-charts/src/charts/force-directed.ts:114
linkDistance?numberTarget resting distance between two linked nodes.-charts/src/charts/force-directed.ts:108
linksForceNetworkLink[]The links (edges) connecting pairs of nodes.-charts/src/charts/force-directed.ts:102
linkStrength?numberStrength pulling linked nodes toward linkDistance.-charts/src/charts/force-directed.ts:110
nodeRadius?numberBase node radius (nodes with a value scale around this). Defaults to 8.-charts/src/charts/force-directed.ts:104
nodesForceNetworkNode<TData>[]The nodes in the network.-charts/src/charts/force-directed.ts:100
padding?Partial<ChartPadding>Space reserved around the chart, per edge, in pixels.BaseChartOptions.paddingcharts/src/core/chart.ts:85
root?stringId of the node the layout springs out from on entry. Defaults to the highest-degree node.-charts/src/charts/force-directed.ts:116
title?string | Partial<ChartTitleOptions>Chart title as plain text, or a ChartTitleOptions object for full control.BaseChartOptions.titlecharts/src/core/chart.ts:87