assign 2.8: tree
✓ Published0🌍 Public
This visualization displays a hierarchical tree of employment sector categories, including government, private sector, and stock market nodes with subcategories like supply-demand and laborer. The code uses d3.tree and d3.hierarchy to compute the layout, then renders the structure as SVG text elements connected by d3.linkHorizontal paths. The dataset comes from data.json, and the visualization includes zoom functionality via d3.zoom. Nodes are de-duplicated and repositioned using underscore.js utilities, with the last root-level branch highlighted in steel blue. Transitions animate node movement using d3 transitions.
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