From c7d165a72e2ebd74e5dda43e176d9326c7d424e8 Mon Sep 17 00:00:00 2001 From: Mike Bostock Date: Fri, 14 Apr 2017 22:27:14 -0700 Subject: [PATCH] Update README. --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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")