Skip to main content
Public

Share visualization

Loading preview…

Upgraded 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

Upgraded Radial Tree of Countries Hierarchy

0
CCurran Kelleher
Last edited Oct 9, 2025
Created on Apr 22, 2025

A radial tree visualization displays the hierarchical organization of countries, grouped by continent and subregion, with leaves arranged around a central "World" node. D3.js v7 computes the layout using `d3.cluster`, projecting nodes onto a circular coordinate system. The SVG rendering uses `d3.zoom` for panning and scaling, with links drawn as curved paths and text labels rotated and anchored based on depth and angular position. The data comes from a local JSON file containing country and regional classifications.

AI-generated description

Radial Tree of Countries Hierarchy

A D3.js visualization showing countries organized in a radial tree layout.

Setup

  1. Serve the files using a local web server
  2. Open index.html in a browser

Structure

  • index.html: Main HTML file
  • styles.css: All styling rules
  • main.js: Entry point
  • visualization.js: Main visualization logic
  • dataLoader.js: Data loading utilities
  • zoom.js: Zoom behavior
  • utils.js: Helper functions

Comments

Sign in to join the discussion.

MIT Licensed