World Countries Tree
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