Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

visualization9d3

Public visualization

Viewing a saved revision (read-only)

8ba3a4071307406abd0c130e0c71849d

visualization9d3

0 stars0🌍 Public
GGanesh Gundekarla
Last edited Apr 26, 2025
Created on Apr 26, 2025
Forked from HTML Starter

A D3.js treemap displays hierarchical data as nested rectangular nodes, sized proportionally to each value. The visualization shows five course categories with descending values, using a spectral color scale for differentiation. The code embeds a static dataset directly and builds the hierarchy using `d3.hierarchy` with a sum accessor, then applies `d3.treemap` to compute the layout. Each leaf node renders as a positioned `div` element, with dimensions derived from the treemap’s computed coordinates and colors assigned via `d3.interpolateSpectral`.

AI-generated description