Skip to main content
100%

World Countries Tree!

✓ Published0🌍 Public
PPotikorn
Last edited Feb 18, 2020
Created on Feb 18, 2020

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 description

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

MIT Licensed

Similar vizzes