Skip to main content
100%

MY TREE

✓ Published0🌍 Public
Ssrini-rg
Last edited Apr 1, 2021
Created on Apr 1, 2021

This example presents a hierarchical tree of world regions and countries, using a horizontal dendrogram layout where the root node, “World,” expands through continents like Asia into sub-regions and individual nations. It uses D3 v5’s `tree` and `hierarchy` functions to compute the layout, with links drawn via `linkHorizontal` paths. The visualization supports zooming and panning through the `d3.zoom` API. Node labels are rendered as SVG text elements with font sizes that shrink based on depth, and the data comes from a JSON file loaded via `json`.

AI-generated description
MIT Licensed

Similar vizzes