You probably want to read:
- https://github.com/mbostock/d3/wiki/Hierarchy-Layout
- https://github.com/mbostock/d3/wiki/Partition-Layout
> When attempting to use partition.nodes() I get an error saying that
> this message does not exist. I search the d3.layout.js file and don't
> see any such method.
nodes() can only be called on layout instances, so you need to call
d3.layout.partition(...).nodes() not d3.layout.partition.nodes().
Hope that helps,
--
Jason Davies, http://www.jasondavies.com/
By the way, it's defined here:
https://github.com/mbostock/d3/blob/master/src/layout/hierarchy.js#L90
d3_layout_hierarchyRebind is called by hierarchy layouts for
convenience, to bind various functions to the current layout, including
the "nodes" function.