Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Tree Structure

Public visualization

Viewing a saved revision (read-only)

97ec466dc5aa4406ae1e0c1ceadfdd84

Fork of Tree Structure

0 stars0🌍 Public
Sshreyasribearelly@gmail.com
Last edited Apr 2, 2024
Created on Apr 1, 2024
Forked from D3 Starter

This fork of a D3 tree structure visualizes a dataset on cardiovascular disease, breaking down the root "Heart Disease" node by sex and age category, with leaf nodes displaying related statistics. The chart uses a hierarchical layout created with `d3.tree()` and `d3.hierarchy()` to position nodes, rendered as SVG paths and circles. Node text labels are styled via CSS, while links and node colors are set through inline styles in JavaScript. The source code defines the data structure explicitly, and the visualization updates dynamically based on this nested hierarchy.

AI-generated description

A demonstration of how to start using D3 version 6.