Assignment 2 Tree graph
✓ Published1🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed