🌍 Public
Viewing a saved revision (read-only)
1e5838b8627a483c8cad957792d2b35c
Assignment 2
This pie chart displays total revenue aggregated by country across years from 1995 to 2019. The code uses d3.pie and d3.arc to generate the chart, with d3.scaleOrdinal and d3.schemeSet3 providing categorical colors for each country slice. Labels are positioned using arc.centroid, and an interactive tooltip reveals exact revenue values on mouseover. A legend with matching colors identifies each country, while revenue is summed from the embedded dataset using d3.group and d3.sum. The visualization renders as SVG with a fixed 900x700 viewport.
AI-generated description