Skip to main content
100%

TreeMap with Tooltips

✓ Published2🌍 Public
GGayan Priyadarshana
Last edited Aug 17, 2023
Created on Aug 17, 2023

This interactive tree map visualizes the hierarchy of steel scrap imports by partner country and commodity type. The hierarchical data is aggregated and rendered as nested rectangles using the D3.js treemap layout algorithm. Each country cell is color-coded and labeled, and clicking a country drills down to reveal its constituent commodity categories. Tooltips display the country, commodity, and value on hover, while a reset button restores the original view. The dynamic updates and transitions are implemented using D3's `transition` API within an SVG-based rendering.

AI-generated description
MIT Licensed

Similar vizzes