Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of World Countries Tree

Public visualization

Viewing a saved revision (read-only)

1789c950de7b4fe8a10d96274523ab86

Fork of World Countries Tree

0 stars0🌍 Public
JJuanda
Last edited Jun 5, 2023
Created on Jun 1, 2023

This visualization shows the hierarchical structure of world countries, organized by continent and subregion, using an expandable tree layout. The data is loaded from a local JSON file and rendered as SVG paths and text labels. The code uses d3.hierarchy and d3.tree to compute the layout, d3.linkHorizontal to draw the connecting links, and d3.zoom to enable panning and zooming. Node labels are positioned along the tree, with font sizes decreasing at deeper levels, and text shadows improve readability over the green link lines.

AI-generated description