Fork of World Countries Tree
✓ Published0🌍 Public
A collapsible tree visualization displays the hierarchical structure of world countries, organized by continent and subregion. The code uses D3 v5’s `stratify` to convert a flat CSV dataset into a hierarchy, then applies the `tree` layout and `linkHorizontal` to render curved links. Nodes are labeled with country names, with font size decreasing by depth. The SVG output supports panning and zooming via `d3.zoom`, and links and text are styled with custom CSS including a serif font and text shadows.
AI-generated descriptionMIT Licensed