Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment_7_piechart

Public visualization

Viewing a saved revision (read-only)

81c89afe0af940bf8b26277d1581d7c1

Assignment_7_piechart

0 stars0🌍 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