Skip to main content
100%

Upgraded Radial Tree of Countries Hierarchy

✓ Published1🌍 Public
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
MIT Licensed

Similar vizzes