Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of World Countries Tree

Public visualization

Fork of World Countries Tree

0 stars0🌍 Public
EErico Vasconcelos
Last edited Apr 3, 2021
Created on Apr 3, 2021

This visualization displays a hierarchical tree of world countries organized by continent and subregion, with each leaf node representing a country rendered as text. Using the D3 v5 tree layout, the code converts nested JSON data into a horizontal dendrogram, connecting parent-child relationships with curved paths generated by `linkHorizontal`. Text nodes are positioned via `d3.hierarchy` and styled with font sizes decreasing by depth. The SVG output supports pan and zoom through D3’s `zoom` behavior, while labels include white text-shadows for readability against the teal link strokes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed