World Countries Hierarchy
✓ Published0🌍 Public
This example presents the hierarchical structure of world countries using a tree diagram. The visualization organizes countries by continent and sub-region, displaying the data from `data.json` as horizontally laid-out nodes connected by link paths. Rendered as an SVG, the code utilizes the d3 library's `hierarchy`, `tree`, and `linkHorizontal` APIs to compute the layout and draw the connections. Text labels, styled with a Roboto font, are positioned using the nodes' calculated coordinates, and a zoom interaction is enabled via the `zoom` API.
AI-generated descriptionA bare minimum HTML canvas demonstrating use of CSS and JavaScript.
MIT Licensed