Basic Tree Map
✓ Published0🌍 Public
This visualization shows a hierarchical tree map of world regions and countries, with the root labeled "World" branching into continents and subregions before reaching individual nations. The layout positions nodes horizontally, with parent-child relationships drawn as curved links using the `linkHorizontal` path generator. The visualization loads data from a local JSON file and uses D3 v5's `tree` and `hierarchy` functions to compute the layout, while SVG elements are selected and managed with `select` and `selectAll`.
AI-generated description- Constructing a node-link tree visualization
- adding text labels to the nodes
- using the margin convention
- tweaking label alignment and size
- panning and zooming
- using a custom font
// d3-heirarchy package
MIT Licensed