Skip to main content
Public

Share visualization

Loading preview…

United States, States Tree

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

United States, States Tree

0
NNHRK555
Last edited Jul 10, 2022
Created on Jul 10, 2022
Forked from HTML Starter

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 description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed