Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

world countries tree

Public visualization

world countries tree

0 stars0🌍 Public
Kkarthiccr
Last edited May 31, 2020
Created on May 31, 2020

This visualization displays a hierarchical tree of world countries, organized by continent and subregion. The data branches from the root node "World" down to individual nations, with each level representing a geographic grouping. The code uses D3 v5’s `tree` layout and `hierarchy` function to compute node positions, while `linkHorizontal` generates the curved connector paths. Country and region names are rendered as SVG text elements, with the tree laid out horizontally across the full viewport. The styling applies a cyan stroke to the links and a white text shadow for readability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed