Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Oct 4, 2023
1 parent 2e5c7ec commit a1453fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/d3-force/center.md
@@ -1,6 +1,6 @@
# Center force

The center force translates nodes uniformly so that the mean position of all nodes (the center of mass if all nodes have equal weight) is at the given position ⟨[*x*](#center_x),[*y*](#center_y)⟩. This force modifies the positions of nodes on each application; it does not modify velocities, as doing so would typically cause the nodes to overshoot and oscillate around the desired center. This force helps keeps nodes in the center of the viewport, and unlike the [position forces](./position.md), it does not distort their relative positions.
The center force translates nodes uniformly so that the mean position of all nodes (the center of mass if all nodes have equal weight) is at the given position ⟨[*x*](#center_x),[*y*](#center_y)⟩. This force modifies the positions of nodes on each application; it does not modify velocities, as doing so would typically cause the nodes to overshoot and oscillate around the desired center. This force helps keep nodes in the center of the viewport, and unlike the [position forces](./position.md), it does not distort their relative positions.

## forceCenter(*x*, *y*) {#forceCenter}

Expand Down

0 comments on commit a1453fa

Please sign in to comment.