Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Tree graph

Public visualization

Fork of Tree graph

0 stars0🌍 Public
JJayaSaiReddySantimalla@my.unt.edu
Last edited Apr 2, 2024
Created on Apr 2, 2024
Forked from HTML Starter

This example visualizes a restaurant business hierarchy as a tree graph, with nodes representing categories like Location, Cuisine Type, and Price Range, each branching into specific subcategories. Node size encodes a numeric value, while stroke and fill colors differentiate types and levels. The code uses D3 v5’s `d3.tree()` and `d3.hierarchy()` to compute layout, rendering SVG paths for links and circles for nodes. Data is hardcoded in JavaScript, with styling applied via CSS classes.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed