Skip to main content
100%

Tree Map with Drill down working

✓ Published1🌍 Public
GGayan Priyadarshana
Last edited Aug 17, 2023
Created on Aug 17, 2023
Forked from Tree Map Example

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 description
MIT Licensed

Similar vizzes