Skip to main content
100%

Fork of World Countries Tree

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

Similar vizzes