Attraction force for d3.forceSimulation.
npm install d3-force-attractModular force for use with D3's forceSimulation.
Pulls nodes toward a specified ⟨x, y⟩ target point.

#### npm
npm install d3-force-attract
#### CDN, via
#### Local, via
Download the latest release
#### UNPKG
The install method you use determines the syntax for accessing the module in your code:
#### npm
Import the forceAttract() method and use it in a forceSimulation.
```
import { forceAttract } from 'd3-force-attract'
// ...
d3.forceSimulation
.force('attract', forceAttract());
#### via