Tree Example
✓ Published0🌍 Public
This interactive tree diagram displays a three-generation family lineage, using an animated collapsible hierarchy. The visualization is built with the D3.js library (version 3.5.17) and renders as SVG, using the `d3.layout.tree` for layout computation and `d3.svg.diagonal` for curved link paths. Nodes are white circles with steel blue strokes, and clicking a node toggles its children’s visibility, smoothly transitioning positions via `node.transition()` and `link.transition()` over 750 milliseconds. The data is hardcoded in the script as a JSON array, with each node containing a name and parent reference.
AI-generated descriptionMIT Licensed