Skip to main content
100%

World Countries Tree

✓ Published0🌍 Public
Ppardha1411
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

This visualization displays the hierarchical structure of world countries, organized by continent and subregion. The code uses D3’s `tree` layout and `linkHorizontal` generator to draw the branching paths, with text labels positioned at each node. Data is loaded from a local JSON file via `d3.json`, and zooming is enabled through D3’s `zoom` behavior. The SVG is styled with a Playfair Display font, and node text size decreases with depth.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes