World Countries Tree
✓ Published0🌍 Public
This visualization displays a hierarchical tree of world countries, organized by continent and subregion, using a left-to-right layout with labeled nodes. It renders country names at varying font sizes based on depth, with horizontal links connecting parent and child nodes. The code uses D3 v5’s `tree`, `hierarchy`, and `linkHorizontal` APIs to compute positions, and applies SVG zooming via `zoom()` on the entire graph. Data comes from a local `data.json` file, and styling uses custom CSS for the serif font and teal link color.
AI-generated descriptionMIT Licensed