Skip to main content
100%

Spotify Peak Position Transforming Data

✓ Published1🌍 Public
Fflanagancarlie@gmail.com
Last edited Feb 3, 2023
Created on Jan 30, 2023
Forked from Transforming Data

This visualization ranks artists by the number of songs that reached the #1 peak position on Spotify, using the Spotify Top 10,000 Songs dataset. It transforms the raw CSV data with `d3.csvParse`, filters records where `peak_position` equals "1", and aggregates counts per artist using `d3.flatGroup`. The results are sorted descending and displayed as a JSON text block via a `pre` element. The code relies on D3 v7 utilities like `flatGroup` and `descending` to process and order the summary.

AI-generated description

Uses the Spotify Top 10,000 Songs data set and calculates the number of songs each artist has eached the #1 spot with.

MIT Licensed

Similar vizzes