Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

piechart

Public visualization

Viewing a saved revision (read-only)

1572898f9a3c486f98e740e34665de8c

piechart

0 stars0🌍 Public
Sshivadeclare2@gmail.com
Last edited Jul 12, 2024
Created on Jul 12, 2024
Forked from Hello VizHub

This visualization displays the genre distribution of Spotify’s Top 50 songs as a pie chart, with percentage labels on each slice and a color-coded legend. It loads CSV data via `d3.csv`, aggregates counts with `d3.rollup`, and renders SVG paths using `d3.pie` and `d3.arc`. The chart applies a Tableau10 color scheme from `d3.scaleOrdinal` and positions text labels at arc centroids.

AI-generated description