-
Book Overview & Buying
-
Table Of Contents
Learn D3.js - Second Edition
By :
A typical simulation combines the effects of several forces, and each force can be configured with a unique behavior. Some forces cause nodes to repel or attract, while others resolve specific positioning constraints, such as moving in a certain direction or keeping a certain distance apart. Figure 18.5 gives a general view of the force algorithms available in D3:
Figure 18.5 – Force algorithms available in D3 version 7
Table 18.3 lists force algorithms and their configuration methods. Functions that take one or more parameters can be called without parameters and configured using methods that take scalar values, and most also take callback functions that can be called per-node.
|
Function |
Configuration methods |
Description |
|
|
|