United States, States Tree
✓ Published0🌍 Public
This example visualizes a hierarchical tree of U.S. states, counties, and cities, with nodes colored by depth (orange, blue, pink, red, or yellow). Using D3.js v6 and the `d3.stratify` and `d3.tree` APIs, it positions nodes and animates path connections between parent and child elements. Rendered as an SVG with transitions, the code draws circles and text labels for each node, with hardcoded data showing relationships like Texas to Denton to Lewisville.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed