Skip to main content
100%

Tree

✓ Published2🌍 Public
Sson.sultan@yahoo.com
Last edited Nov 6, 2025
Created on Nov 6, 2025

A D3.js (v7) SVG tree diagram displays the hierarchical structure of US regions and states, with a root node for the United States branching into color-coded Central, Western, and Southern region nodes, each containing leaf state nodes. The layout is computed using `d3.tree()` with `d3.hierarchy()`, while links are drawn as horizontal paths via `d3.linkHorizontal()`. Nodes appear as circles with region colors or white for states, and labels are placed using `text-anchor` based on branch direction. The data is static JSON embedded in the script, rendered with a light background and sans-serif typography.

AI-generated description
MIT Licensed

Similar vizzes