Skip to main content
100%

Assignment2_Task7_Tree

✓ Published0🌍 Public
Mmandadi1999
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes