Skip to main content
100%

Activity 8 Q6A

✓ Published0🌍 Public
Ppasyasahas
Last edited Jul 16, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

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 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