Skip to main content
100%

Assignment 2 Tree graph

✓ Published1🌍 Public
Ppasyasahas
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

This example shows a hierarchical tree graph with a root node labeled "Venkat" and four child branches, each splitting into two leaf nodes. Circles sized by the node's numeric `value` property sit at each point, while link and node colors derive from the `level` and `type` fields in the data. Built with D3 v5, the code uses `d3.tree()` and `d3.hierarchy()` to compute the layout, then renders SVG paths for curved links and circles with text labels. Colors come directly from the inline JavaScript data object, which is embedded in the source.

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