World Countries Tree!
✓ Published0🌍 Public
This example displays a hierarchical tree of world countries, organized by continent and subregion, with the data read from a local JSON file. The visualization uses D3.js to build the tree with a horizontal link layout, rendering nodes as text labels of varying font sizes based on their depth in the hierarchy. The SVG canvas supports zooming and panning through a custom zoom function, and the code employs D3's hierarchy, tree, and linkHorizontal APIs to position elements.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed