Activity 8 Q6A
✓ Published0🌍 Public
This example presents an interactive hierarchical tree visualization of muscle car models, using D3.js v3 to render SVG elements with click-to-expand/collapse functionality. The tree layout arranges nodes by type, with color-coded rectangles representing different model categories (Grey, Blue, Red, Orange) and arrowed links indicating parent-child relationships. The visualization includes zoom and drag behavior via `d3.behavior.zoom`, plus tooltips and drop-shadow filters defined in SVG defs. Data is loaded asynchronously from a JSON file and rendered within a 350-pixel-wide container with animated transitions between states.
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