🌍 Public
Viewing a saved revision (read-only)
af3c99aa08fc438ead2fec6de1892a16
usa Tree
This visualization shows a hierarchical tree of U.S. states and cities, with the USA at the root, three states (Florida, Texas, Virginia) as children, and their major cities as leaves. The code uses `d3.stratify()` to convert flat parent-child data into a hierarchy and `d3.tree()` to compute node positions. Circles represent each node, colored by depth via a `setGeneration` function, with animated SVG path links that transition from source to target positions and text labels displayed in yellow.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.