🌍 Public
Viewing a saved revision (read-only)
8b30a42c0bee42998f33e65805f303ec
Countries Tree
This example visualizes a hierarchical dataset of countries organized by continent and subregion as a dendrogram. The tree layout positions all nodes in a horizontal cluster, with country names displayed at varying font sizes based on depth using the d3.cluster and d3.hierarchy APIs. Curved link paths are generated with d3.linkHorizontal, while d3.zoom enables panning and scaling of the SVG canvas. The data is loaded from a JSON file and rendered entirely in SVG with custom styling.
AI-generated description