🌍 Public
Viewing a saved revision (read-only)
993aa0367a204ab087443a8d75061c25
03_region_bar
This treemap visualizes global video game sales from 1980–2015, breaking down regional distribution across North America, Europe, Japan, and Other territories. The code aggregates sales columns from the CSV data and feeds them into `d3.treemap` and `d3.hierarchy` to calculate rectangle sizes, which scale proportionally to total sales. Each region is rendered as an SVG group with hover interactions and a tooltip showing exact sales figures and percentage share. Colors are fixed per region, with white strokes providing visual separation between rectangles.
AI-generated description