Skip to main content
100%

World Countries Hierarchy

✓ Published0🌍 Public
MMatthew Rubino
Last edited Jun 13, 2021
Created on Jun 13, 2021
Forked from Blank Canvas

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 description

A bare minimum HTML canvas demonstrating use of CSS and JavaScript.

MIT Licensed

Similar vizzes