Skip to main content
Public

Share visualization

Loading preview…

Tree Visualization of World Countries

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

Tree Visualization of World Countries

0
CCassie
Last edited Oct 16, 2021
Created on Oct 14, 2021
Forked from Art Tree

This visualization displays the hierarchical relationship between world countries, continents, and subregions as a horizontal tree diagram. The code uses D3 v5’s `tree` and `hierarchy` layouts to compute node positions, with `linkHorizontal` generating curved connecting paths. Text labels show country names at varying font sizes based on tree depth. The SVG rendering supports zooming and panning through D3’s `zoom` behavior, and the data comes from a nested JSON file. The styling uses the IM Fell English SC font.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed