This is a simple d3.js tree diagram, arranged so that the tree is vertical, as used as an example in the book D3 Tips and Tricks.
It is derived from the Mike Bostock Collapsible tree example but it is a VERY cut down version without the ability to update (collapse).
Small tiny thing, the
source
argument in the update is never used, the root is accessed directly.Thanks for the sample, it was really helpful.
Edit: And the parent name is not needed on every child. The d3 tree layout override it with a whole reference of the parent node.