Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js!

Public visualization

Viewing a saved revision (read-only)

52828701c89f49a5a600a75994dde3ff

Let's make a map with D3.js!

0 stars0🌍 Public
EElvira Galimova
Last edited Sep 21, 2020
Created on Sep 21, 2020

This example renders a hierarchical tree visualization of world regions and countries using D3.js v5. The data is loaded from a JSON file that organizes countries under continents and subregions, which is then processed with the `d3.hierarchy` and `d3.tree` layouts. SVG paths are generated for the links using `d3.linkVertical`, with the tree layout’s size set to the full browser window dimensions. The map-like structure is drawn solely as a node-link diagram, not a geographic projection.

AI-generated description