Tree Map with Drill down working
✓ Published1🌍 Public
This tree map visualizes the value of steel scrap exports from various countries, with each top-level rectangle representing a partner country and its total export value. The chart uses D3 v7’s `d3.hierarchy` and `d3.treemap` layout to render the hierarchical data as SVG rectangles. Clicking a country cell drills down to display the commodity-level breakdown for that country, using `transition` for smooth animated updates of the rectangles and labels. The data is loaded from a CSV file containing partner country, commodity description, and export values.
AI-generated descriptionMIT Licensed