Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Working Region Filter

Public visualization

Viewing a saved revision (read-only)

3c4ffc88bf8c42c2a137dbe3923a0967

Fork of Working Region Filter

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

This interactive treemap visualizes US steel scrap trade data, showing the relative monetary value of imports and exports by partner country within a selected region. Users can filter the view by region and toggle between import and export flows. The visualization uses a hierarchical treemap layout, rendered as SVG, with color intensity reflecting magnitude. Built with D3 v7, the code leverages `d3.hierarchy` and `d3.treemap` to structure and compute rectangle positions, while `d3.scaleSequential` drives the color mapping. Clicking a country cell initiates a drill-down, suggesting further exploration of commodity-level details.

AI-generated description