Skip to main content
100%

Assignment 2 Question 7_Tree Chart

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

This interactive tree chart displays hierarchical geographic data, showing continents branching into countries, then cities, and finally landmarks. The visualization uses D3.js version 3’s `d3.layout.tree` to compute the node positions and `d3.svg.diagonal` to draw the curved connecting links between parent and child nodes. Each node is rendered as an SVG circle with color-coded fills based on its hierarchy level, while text labels identify each entity. The animation feature uses D3 transitions with a 1000ms duration to smoothly update the tree layout, and the data is passed directly from a local JavaScript array.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes