Building a Tree Visualization
✓ Published1🌍 Public
This visualization displays a hierarchical tree of world geography, showing continents divided into subregions and then individual countries. The layout uses a horizontal tree structure where parent nodes are centered above their children, with curved links connecting each level. The code leverages D3 v5’s `tree` and `hierarchy` layouts, along with `linkHorizontal` for the curved paths, and renders text labels with font sizes that shrink with each depth level. The SVG scene supports zooming and panning through D3’s `zoom` behavior, with data loaded from a JSON file.
AI-generated descriptionMIT Licensed