Skip to main content
100%

Fork of Tree

✓ Published0🌍 Public
Kkruthanreddy812@gmail.com
Last edited Apr 9, 2026
Created on Apr 9, 2026
Forked from Tree

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 description
MIT Licensed

Similar vizzes