Collapsible Tree Example
✓ Published0🌍 Public
Dd3noob
Last edited Nov 30, 2019
Created on Jan 9, 2014
This collapsible tree example shows a static, two-level hierarchy loaded from an external JSON file, with nodes rendered as white circles connected by gray curved links. The view is fixed and does not update or collapse. Built with the D3.js library (version 3.5.17), it uses `d3.layout.tree()` for layout, `d3.svg.diagonal()` for link paths, and `d3.json()` to fetch the data. The SVG output is generated by appending node circles and text labels, with styling defined in the embedded CSS.
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).
mit Licensed