Fork of Fork of Radial Tree of Countries Hierarchy
This radial tree visualizes the hierarchical relationship of world countries, organized by continent and subregion, with country names displayed at varying font sizes based on depth. The visualization, built with D3 v4, uses `d3.cluster` and `d3.hierarchy` to compute the radial layout, while a custom `project` function converts polar coordinates to Cartesian positions for SVG rendering. Panning and zooming are enabled via `d3.zoom`, and node labels are rotated or aligned dynamically based on their angular position. The data comes from a local `data.json` file containing the country hierarchy.
AI-generated descriptionRadial Tree Visualization of Countries Hierarchy. Has Panning and Zooming interaction.
Adapted from Curran Kelleher’s Block "World Countries Hierarchy".