Tree
✓ Published0🌍 Public
This example shows a family tree with a root node, two main branches, and multiple levels of descendants. Each node is labeled with a name, and the text color matches the color property stored in the data.json file. The tree layout uses d3.tree() and d3.hierarchy() to compute positions, while d3.linkHorizontal() draws the curved connecting paths. The visualization is rendered as SVG, supports zooming via d3.zoom(), and uses font size based on node depth.
AI-generated descriptionMIT Licensed