Skip to content

chartjs-chart-graph / IForceDirectedControllerOptions

Interface: IForceDirectedControllerOptions ​

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:40

Extended by ​

Properties ​

simulation ​

simulation: object

Defined in: work/chartjs-chart-graph/chartjs-chart-graph/src/controllers/ForceDirectedGraphController.ts:41

autoRestart ​

autoRestart: boolean

auto restarts the simulation upon dataset change, one can manually restart by calling: chart.getDatasetMeta(0).controller.reLayout();

Default ​
ts
true

forces ​

forces: object

forces.center ​

center: boolean | ICenterForce

center force https://github.com/d3/d3-force/#centering

Default ​
ts
true
forces.collide ​

collide: boolean | ICollideForce

collision between nodes https://github.com/d3/d3-force/#collision

Default ​
ts
false

link: boolean | ILinkForce

link force https://github.com/d3/d3-force/#links

Default ​
ts
true
forces.manyBody ​

manyBody: boolean | IManyBodyForce

link force https://github.com/d3/d3-force/#many-body

Default ​
ts
true
forces.radial ​

radial: boolean | IRadialForce

radial positioning force https://github.com/d3/d3-force/#forceRadial

Default ​
ts
false
forces.x ​

x: boolean | IForceXForce

x positioning force https://github.com/d3/d3-force/#forceX

Default ​
ts
false
forces.y ​

y: boolean | IForceYForce

y positioning force https://github.com/d3/d3-force/#forceY

Default ​
ts
false

initialIterations ​

initialIterations: number