Skip to main content
Public

Share visualization

Loading preview…

Building a 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

Building a tree

0
ZZhengyan Yu
Last edited Apr 24, 2020
Created on Apr 20, 2020
Forked from Blank Canvas

A hierarchical tree visualization displays world geography from the global root down to individual countries through intermediate regional groupings. The layout uses d3.tree and d3.hierarchy to compute node positions from JSON data, while d3.linkHorizontal generates curved paths between parent and child nodes. Node labels are rendered as SVG text with font sizes scaled inverse to node depth. The visualization incorporates d3.zoom for pan-and-zoom interactions within an SVG container.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed