Skip to main content
100%

Assignment_7_piechart

✓ Published0🌍 Public
JJaswanthKoorapati@my.unt.edu
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from Fork of pie chart

This pie chart displays the share of music revenue (in millions USD) across top years, with each slice labeled by its percentage of the total. The SVG rendering combines a pie on the left and a legend on the right, both drawn inside a single responsive viewBox. Using d3.pie and d3.arc for slice generation, the code loads data from a remote CSV, applies a d3.scaleOrdinal with schemeSet2 for colors, and adds interactive tooltips via appended title elements. The legend lists each year with its value and percentage, built through D3 data joins.

AI-generated description
MIT Licensed

Similar vizzes