🌍 Public
Viewing a saved revision (read-only)
da8b84d258794e48afd3144dc99938d6
world countries tree
This interactive tree diagram displays the hierarchical organization of world countries, grouped by continent and subregion, using a dataset from the UN (data.json). The visualization employs D3 v5’s `tree` layout and `hierarchy` function to compute node positions, with `linkHorizontal` drawing the connecting paths. Node labels are not rendered in this example; instead, a steelblue background rect is drawn, and the chart is sized to fill the viewport via `document.body.clientWidth/Height`. The underlying data is static JSON, while a separate CSV file provides population figures, though these are not currently linked or displayed.
AI-generated descriptionworld countries tree