Skip to main content
100%

Assignment 2

✓ Published0🌍 Public
Ssarikakannikanti@gmail.com
Last edited Mar 26, 2025
Created on Mar 26, 2025
Forked from Hello VizHub

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

Similar vizzes