Skip to main content
100%

Spotify Peak Position Transforming Data 2

✓ Published0🌍 Public
Fflanagancarlie@gmail.com
Last edited Mar 6, 2023
Created on Feb 13, 2023

This visualization analyzes the Spotify Top 10,000 Songs dataset, showing a ranked list of artists by how many songs each has reached the #1 peak position. The code uses `d3.flatGroup` to group records by artist, then computes the minimum `peak_position` per artist and counts songs at that maximum rank. Results are sorted in descending order using `d3.descending` and displayed as JSON text via `d3.select`. The data loads from an external CSV file using `d3.csvParse`.

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