Skip to main content
Public

Share visualization

Loading preview…

two

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

two

0 stars1Public
Mmuchakurthisahithipatel@gmail.com
Last edited Nov 10, 2025
Created on Nov 10, 2025
Forked from D3 Starter

A hierarchical tree visualization maps food categories such as Fruits, Vegetables, and Grains through types to individual items, with each node colored by depth and displaying nutritional calorie data via hover tooltips. The chart uses D3.js v7 with the `d3.hierarchy` and `d3.tree` layout functions to position nodes and links, rendered as an SVG with a custom tooltip div. Data is embedded inline from a food dataset, with link and node styling defined through CSS classes.

AI-generated description

Food Categories Tree Visualization

A hierarchical D3.js tree visualization showing the relationship between food categories, types, and individual items with nutritional information.

Structure

Comments

Sign in to join the discussion.

MIT Licensed