Skip to content

Commit

Permalink
Document node.value; fixes #48.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jun 28, 2016
1 parent 4acadf9 commit 211159a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ The returned node and each descendant has the following properties:
* *node*.height - zero for leaf nodes, and the greatest distance from any descendant leaf for internal nodes
* *node*.parent - the parent node, or null for the root node
* *node*.children - an array of child nodes, if any; undefined for leaf nodes.
* *node*.value - the summed value of the node and its [descendants](#node_descendants); optional, set by [*node*.sum](#node_sum).

This method can also be used to test if a node is an `instanceof d3.hierarchy` and to extend the node prototype.

Expand Down

0 comments on commit 211159a

Please sign in to comment.