🌍 Public
Viewing a saved revision (read-only)
5429f5c7bb664325a104a3f235403896
Assignment2_Task7_Tree
This animated tree diagram shows hierarchical geographic data, with continents branching into countries and cities. The visualization expands nodes progressively using D3’s `d3.layout.tree` and `d3.svg.diagonal` APIs, with each node’s position calculated by depth. Node colors derive from the dataset’s `fill` properties, while SVG circles and text labels update dynamically through node enter/update transitions. The code uses D3 version 3.5.17 to render the structure, with fixed-depth spacing and a 500-pixel-tall frame.
AI-generated descriptionA demonstration of how to start using D3 version 6.