Skip to main content
100%

Tree Visualization of World Countries.js

✓ Published0🌍 Public
Xxsg13
Last edited Dec 31, 2020
Created on Dec 31, 2020
Forked from Blank Canvas.js

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 description
MIT Licensed

Similar vizzes