d3-force-cluster
Modular force for use with D3's
forceSimulation.
Pulls nodes toward a set of cluster center nodes / points. Works well with a
collision force to pack nodes together in clusters with no overlap.
Adapted from Mike Bostock's
Clustered Force Layout III.

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