MY TREE
✓ Published0🌍 Public
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 descriptionMIT Licensed