Tree Visualization of World Countries.js
✓ Published0🌍 Public
A hierarchical tree visualization displays countries grouped by continent and subregion, with the world as the root and individual nations as leaf nodes. The layout uses D3's `tree` and `hierarchy` functions to position nodes, while `linkHorizontal` generates curved paths connecting them. The SVG rendering applies zoom functionality from D3's `zoom` event, and text labels scale in font size based on node depth. Styled with a Playfair Display font and text shadows, the visualization reads hierarchical country data from a local JSON file.
AI-generated descriptionMIT Licensed