Skip to main content
100%

Tree Example with worlds and their countries

✓ Published0🌍 Public
SSwapna1915
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Tree Example

This interactive tree diagram displays a hierarchical view of the world’s continents and selected countries, with nodes that expand and collapse on click. Built with React and D3.js (v3), it uses `d3.layout.tree` for positioning and `d3.svg.diagonal` for curved links, all rendered as animated SVG transitions. The visualization starts with a root node for “world” and branches into continents like Asia, Europe, and Africa, with Asia further detailed into subregions and specific countries such as India, Austria, and Belgium. Node colors and stroke styles are defined via CSS classes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes