Fork of tree visualization of countries
✓ Published0🌍 Public
This example displays a hierarchical tree visualization of countries organized by continent and subregion, with the root node labeled “World” and leaves representing individual nations. The data is loaded from a JSON file and rendered as an SVG using D3 v7’s `tree` layout, `hierarchy`, and `linkHorizontal` generators. Nodes are labeled with text whose font size decreases with depth, while curved links are styled with a teal stroke. Pan and zoom interactions are enabled via `d3.zoom`, and the layout adapts to the browser window dimensions.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed