Skip to main content
100%

Activity8_task6_MuscleCars tree

✓ Published1🌍 Public
Rrikhitakoganti12
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

This example shows an animated, interactive tree diagram of muscle car models, branching from a root node through Ford and Dodge to specific vehicles and their trims. Built with D3 v3, it renders the hierarchy as an SVG using a collapsible tree layout (`d3.layout.tree`), with colored rectangles for nodes, links, and arrow markers defined in a `defs` section. The code supports zoom and drag via `d3.behavior.zoom`, and includes tooltips and collision detection between nodes. Data comes from a local `Tree.json` file.

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