Skip to main content
100%

Building a Tree Visualization

✓ Published1🌍 Public
LLiu2021311512
Last edited Apr 24, 2022
Created on Apr 24, 2022
Forked from Blank Canvas

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 description
MIT Licensed

Similar vizzes