Skip to main content
100%

Fork of Working Region Filter

✓ Published0🌍 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
MIT Licensed

Similar vizzes