Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Add buttons

Public visualization

Viewing a saved revision (read-only)

70f14de43e3547dab2d72b2fea3ac2da

Add buttons

0 stars0🌍 Public
GGayan Priyadarshana
Last edited Aug 18, 2023
Created on Aug 18, 2023

This treemap visualizes U.S. steel scrap export values by partner country and commodity, using area size and a light-to-dark blue color scale to encode magnitude. Clicking a country drilils down to show individual commodity values, while a reset button restores the top-level view. The D3 v7 implementation uses d3.hierarchy, d3.treemap, and d3.scaleSequential with interpolateRgb, rendering SVG rectangles with transitions and tooltips via title elements. Data comes from a CSV file with partner country, commodity description, and value fields.

AI-generated description