Skip to main content
100%

Fork of tree visualization of countries

✓ Published0🌍 Public
Aakshayms0
Last edited Nov 2, 2022
Created on Nov 2, 2022

This example displays a hierarchical tree visualization of countries organized by continent and subregion, with the root node labeled “World” and leaves representing individual nations. The data is loaded from a JSON file and rendered as an SVG using D3 v7’s `tree` layout, `hierarchy`, and `linkHorizontal` generators. Nodes are labeled with text whose font size decreases with depth, while curved links are styled with a teal stroke. Pan and zoom interactions are enabled via `d3.zoom`, and the layout adapts to the browser window dimensions.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes