Skip to main content
Public

Share visualization

Loading preview…

World Countries Tree

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

World Countries Tree

0
KKarkG
Last edited Aug 8, 2020
Created on Aug 8, 2020

This visualization displays the hierarchical structure of world countries, organized by continent and subregion, as a horizontal tree diagram rendered as SVG. It uses a D3.js v5 tree layout to position nodes and links, with the `d3.hierarchy` and `d3.linkHorizontal` modules generating the tree paths. The data is loaded from `data.json`, and the visualization supports mouse-wheel zooming via d3's zoom transform, applying it to a group element. Text labels show country names with a font size that decreases with tree depth.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed