diff --git a/README.md b/README.md index 3654cf8..addb96f 100644 --- a/README.md +++ b/README.md @@ -115,12 +115,10 @@ var simulation = d3.forceSimulation(nodes) .force("center", d3.forceCenter()); ``` -If *name* specified, but *force* equals `null`, then the force with *name* will be removed: +To remove the force with the given *name*, pass null as the *force*. For example, to remove the charge force: ```js -var simulation = d3.forceSimulation(nodes) - .force("charge", d3.forceManyBody()) -simulation.force("charge", null) // now it is removed +simulation.force("charge", null); ``` # simulation.find(x, y[, radius]) [<>](https://github.com/d3/d3-force/blob/master/src/simulation.js#L116 "Source")