Activity 8 Question 6
✓ Published1🌍 Public
This example presents a collapsible tree visualization of muscle car models, showing a hierarchy from “Muscle Cars” down to specific variants like the Hellcat and SRT. It uses D3 v3’s `d3.layout.tree` to compute node positions, with SVG shapes for nodes and links, and includes animations for expanding and collapsing branches on click. The code also implements tooltips and color-coded node types, with zoom and drag behavior via `d3.behavior.zoom`. Data is loaded from a static JSON file, and the rendering leverages SVG elements and jQuery for tooltip visibility.
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