Skip to main content
100%

Tree

✓ Published0🌍 Public
SSharankumar02
Last edited Jul 20, 2023
Created on Jul 17, 2023
Forked from Hello VizHub

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