World Countries Tree
✓ Published0🌍 Public
This interactive visualization displays a hierarchical tree of world countries organized by continent and subregion, rendered as an SVG node-link diagram. The tree layout uses `d3.tree()` and `d3.hierarchy()` to position nodes, while `d3.linkHorizontal()` generates curved links between parent and child nodes. Panning and zooming are enabled through `d3.zoom()`. Data comes from a local JSON file. Text labels show country names, with font size decreasing by depth and a Playfair Display font applied via CSS.
AI-generated descriptionconstructing a node-link tree visualization
adding text labels to the nodes
using the margin convention
tweaking label alignment and size
panning and zooming
using a custom font
MIT Licensed