Skip to main content
100%

Activity 8 Question 6

✓ Published1🌍 Public
MMichael Biancardi
Last edited Jul 17, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

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