Activity8_task6_MuscleCars tree
✓ Published1🌍 Public
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 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