MuscleCars tree
✓ Published0🌍 Public
This interactive tree visualization displays a hierarchical structure of classic muscle cars, organized by brand (Ford, Dodge) and specific models, with a custom layout. Built with D3 v3, it renders collapsible nodes and animated links using SVG and the `d3.layout.tree` API, which calculates the tree's size and positions. The code reads the hierarchical data from a JSON file (`Tree.json`) and uses the `d3.behavior.zoom` module for pan and zoom interactions. Styling is applied via CSS classes, with node colors varying by type, and the visualization includes tooltips and a drop-shadow filter.
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