Skip to main content
100%

Fork of Fork of TreeMap with Tooltips and colors correctly

✓ Published1🌍 Public
GGayan Priyadarshana
Last edited Aug 18, 2023
Created on Aug 18, 2023

A treemap visualization displays steel scrap exports by partner country, with rectangles sized and colored by total export value. The view supports drill-down through country nodes to reveal commodity-level breakdowns, with tooltips showing exact values. The code uses d3.csv to load data, d3.hierarchy and d3.treemap for layout, and d3.scaleSequential for color encoding. Rendered in SVG with d3 transitions for updates, a reset button restores the initial country-level view.

AI-generated description
MIT Licensed

Similar vizzes