Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Treemap

Public visualization

Fork of Treemap

0 stars0🌍 Public
GGayan Priyadarshana
Last edited Aug 16, 2023
Created on Aug 16, 2023
Forked from Treemap

This visualization shows a hierarchical treemap where rectangular tiles represent data categories, with size indicating their relative production values. The treemap displays five groups (grp1–grp7) nested under an origin node, each filled with a uniform teal color and labeled with white text. Built with D3 v6, the code uses `d3.stratify` to convert CSV data into a hierarchy, `d3.treemap` to compute tile positions, and SVG `rect` and `text` elements for rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed