Skip to main content
Public

Share visualization

Loading preview…

Fork of Radial Tree of Countries Hierarchy

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

Fork of Radial Tree of Countries Hierarchy

0
RRashi Tyagi
Last edited Mar 23, 2023
Created on Mar 23, 2023

This radial tree visualization displays a hierarchical breakdown of world countries organized by continent and subregion, with each node labeled at its corresponding depth level. The visualization supports panning and zooming through the `d3.zoom` API, which applies transforms to the SVG group element. The code uses `d3.cluster()` to compute node positions in a circular layout and `d3.scaleSqrt` to size the text based on tree depth. Links draw as curved paths for deeper nodes, while leaf nodes align text to the outer edge for readability. The data originates from a JSON file containing the full country hierarchy.

AI-generated description

Radial Tree Visualization of Countries Hierarchy. Has Panning and Zooming interaction.

Adapted from Curran Kelleher’s Block "World Countries Hierarchy".

Comments

Sign in to join the discussion.

MIT Licensed