Skip to main content
100%

Quantity added to the visuals and

✓ Published3🌍 Public
GGayan Priyadarshana
Last edited Aug 31, 2023
Created on Aug 21, 2023
Forked from Region Filter

This treemap visualization displays the value and quantity of steel scrap imports and exports between regions and partner countries. Users can filter the data by region and toggle between Import and Export modes, with the ability to reset the view. The code uses D3 v7’s `d3.treemap`, `d3.hierarchy`, and `d3.scaleSequential` to create the layout and color scale, while SVG rectangles represent each country’s aggregated trade value. Hovering reveals a tooltip with the country name, value, and quantity, and clicking drills down for more detail.

AI-generated description
MIT Licensed

Similar vizzes