Collapsible Tree Example
This example shows a static hierarchical tree diagram with nodes and links loaded from an external JSON file. The visualization uses the D3.js v3 library, specifically the `d3.layout.tree` for computing node positions and `d3.svg.diagonal` for drawing curved connecting paths between parent and child nodes. Nodes are rendered as SVG circles with text labels, and the layout is normalized to a fixed depth of 180 pixels per level. The data source is a JSON array containing a top-level node with two children, one of which has its own descendants, demonstrating basic tree structure rendering without interactivity.
AI-generated descriptionThis is a simple d3.js tree diagram that loads an external data file 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).
forked from <a href='http://bl.ocks.org/d3noob/'>d3noob</a>'s block: <a href='http://bl.ocks.org/d3noob/8329447'>D3.js tree diagram generated from external (JSON) data</a>