Skip to main content
100%

Fork of Fork of World Countries Tree

✓ Published0🌍 Public
DDamian Grzanka
Last edited May 3, 2021
Created on May 3, 2021

This visualization presents a hierarchical tree of world countries, organized by continent and subregion, using a branching layout that expands from left to right. The data is loaded from a JSON file, and the tree structure is rendered as SVG paths and text labels. The code uses D3 v5’s `tree()` layout, `hierarchy()`, and `linkHorizontal()` to compute the layout and draw the connecting links. Users can pan and zoom the entire diagram via the `zoom()` behavior, with text sizing decreasing at deeper levels to fit the hierarchy.

AI-generated description
MIT Licensed

Similar vizzes