Fork of Tree
✓ Published0🌍 Public
This example shows a hierarchical tree of clothing categories, from a root node for "Clothing Family" down to individual outfit types like T-Shirt, Suit, and Saree. The code uses `d3.stratify` to convert a flat dataset of parent-child pairs into a tree structure, then applies `d3.tree` to compute the layout and renders it as SVG. Circles for nodes are color-coded by depth, with labeled text alongside each node and gray lines connecting linked nodes.
AI-generated descriptionMIT Licensed