Simple Tree Diagram - Vertical
✓ Published0🌍 Public
Aandrew-reid
Last edited Jul 14, 2017
Created on May 17, 2017
This example shows a vertical tree diagram with a single parent node branching into two children, one of which has a grandchild. It uses D3 v4’s `d3.hierarchy` and `d3.tree` layout to compute node positions, and renders the structure as SVG. Links are drawn as vertical paths using `d3.linkVertical`, while nodes appear as white circles with steelblue strokes and text labels. The data is hardcoded as a JavaScript object with a `name` and nested `children` array, and the diagram is centered with margins applied to the main group.
AI-generated description