Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ice7_task2_1

Public visualization

Viewing a saved revision (read-only)

c3f3455805cb4dcf95336b0c322b8029

ice7_task2_1

0 stars0🌍 Public
BBalaji Dasari
Last edited Oct 25, 2025
Created on Oct 25, 2025

A dark-themed pie chart shows the distribution of total monthly Spotify listeners across music genres, with each slice sized by summed listener counts from the SpotifyTopArtists.csv dataset. D3 v7 loads the CSV with `d3.csv`, aggregates genres using `d3.rollup` and `d3.sum`, and renders the chart with `d3.pie` and `d3.arc` generators. Slice labels display genre names and percentages via `tspan` elements, while a side legend built with D3 DOM joins shows each genre's total listeners in millions.

AI-generated description