Skip to main content
Public

Share visualization

Loading preview…

Fork of 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 Fork of Radial Tree of Countries Hierarchy

0
Ssaima.samreen21@outlook.com
Last edited Apr 20, 2025
Created on Apr 20, 2025

A radial tree diagram displays a hierarchical classification of countries by world region and subregion, sourced from a JSON file named `countryHierarchy.json`. The visualization shows the World as the root, branching into continents like Asia, then subregions such as Southern Asia, and finally individual countries. Built with D3.js v4, the code uses `d3.cluster` to compute the tree layout and `d3.hierarchy` to process the data. Nodes and connecting links are rendered as SVG elements, while `d3.zoom` enables panning and scaling. Text labels are positioned radially, with rotation adjusted based on each node's angle.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed