Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

Viewing a saved revision (read-only)

37a3ddbe622745c4aaa17a8d967dfbce

World Countries Tree

0 stars0🌍 Public
ZZ-Richard
Last edited Jun 17, 2020
Created on Jun 17, 2020
Forked from Blank Canvas

This visualization shows the hierarchical structure of world countries, organized by continent and subregion, using a tree layout in SVG. The root node is "World," with branches for each continent and further subdivisions down to individual countries. The code uses D3 v5’s `tree`, `hierarchy`, and `linkHorizontal` to compute the layout and draw curved links, with zooming enabled via `d3.zoom`. Text labels are positioned per node, with font size decreasing by depth, and the data is loaded from `data.json` using `d3.json`.

AI-generated description