Skip to main content
100%

usa Tree

✓ Published0🌍 Public
SSravyaAnnadi
Last edited Jul 10, 2022
Created on Jul 10, 2022
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes