Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Treemap

Public visualization

Fork of Treemap

0 stars0🌍 Public
HHaili0109
Last edited Nov 28, 2024
Created on Nov 28, 2024
Forked from Treemap

This fork of a D3 treemap visualizes hierarchical data from a CSV file, showing the production values of countries grouped by continent as nested rectangles. Each rectangle uses color to represent its leaf node, and hovering highlights it while a title tooltip displays the country name and production value. The code uses `d3.csv`, `d3.stratify`, and `d3.treemap` to compute layout, then renders SVG rectangles and text labels with D3 v6.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed