Tree
✓ Published0🌍 Public
This interactive tree diagram visualizes a hierarchical dataset of alcoholic beverages and their subcategories, with nodes representing items like Wine, Whisky, and specific products, color-coded based on their type. The visualization uses the D3.js library, specifically `d3.layout.tree` and `d3.svg.diagonal`, to compute and render nodes and links. SVG elements are transitioned over 1000 milliseconds as new nodes expand from the root, with each node’s fill color reflecting its category. The dataset is defined in ES6 format, and D3 is loaded via a CDN, demonstrating a dynamic, animated exploration of the drink hierarchy.
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