Skip to main content
100%

World Countries Tree

✓ Published0🌍 Public
Aalfredo-f
Last edited Oct 25, 2019
Created on Oct 25, 2019
Forked from Blank Canvas

A tree diagram displays a hierarchy of the world's countries, organized by continent and subregion. The D3.js visualization uses `d3.tree`, `d3.hierarchy`, and `d3.linkHorizontal` to compute and draw the graph’s links, while labels for each node are rendered as SVG text elements. The underlying data, in `data.json`, follows a nested parent-child structure, and the layout is sized dynamically to fit the viewport. The paths are styled with a teal stroke, and the text labels have white shadows for readability.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes