Skip to main content
100%

Ordered Tree Map with Drill down working

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

This interactive treemap visualizes steel scrap export values by partner country, with each country’s total represented as a colored rectangle. Clicking a country drills down to display its individual commodity categories as sub-rectangles, sized proportionally to their monetary values. The chart uses D3 v7’s `d3.hierarchy`, `d3.treemap`, and SVG rendering, with click-driven drill-down updates and smooth `transition()` animations on rectangle dimensions and labels. Data is loaded from a CSV file containing partnerCountry, commodityDescription, and Value fields.

AI-generated description
MIT Licensed

Similar vizzes