Skip to main content
100%

World Countries Tree

✓ Published1🌍 Public
Ssteveaigbe
Last edited Nov 21, 2020
Created on Nov 21, 2020
Forked from Blank Canvas

This visualization displays the hierarchical structure of world countries, organized by continent and subregion. It presents a horizontal tree layout where each node represents a geographic area, from the top-level “World” node down to individual countries. The size of the text decreases with the node’s depth in the hierarchy, making higher-level categories more prominent. The implementation uses D3.js version 5 with SVG rendering. It employs the `tree` layout algorithm, `hierarchy` for processing the JSON data, and `linkHorizontal` for generating connecting paths. The code also integrates zoom functionality through a custom `zoom` component that applies user interactions to the SVG group. Country data is sourced from the provided `data.json` file.

AI-generated description
MIT Licensed

Similar vizzes