quality area chart
✓ Published0🌍 Public
This example shows a pie chart of Spotify Top 50 song genres, with each slice labeled by its percentage of the total and accompanied by a color-coded legend. Using D3 v6, it fetches CSV data from a GitHub gist, aggregates genre counts with `d3.rollup`, and generates arcs via `d3.pie` and `d3.arc`. The SVG rendering applies a `d3.scaleOrdinal` with `d3.schemeSet3` for colors and positions percentage labels using `arc.centroid`.
AI-generated descriptionMIT Licensed