Top 10 Artists Bar Chart - Spotify Peak Position
This visualization displays the top 10 artists on Spotify based on a user-selected metric, such as peak streams or total streams, using a horizontal bar chart with a logarithmic x-axis. Each bar’s length represents the aggregated value for that artist, and hovering over a bar reveals a tooltip with details like song counts and peak positions. The chart is built with D3 v7, using `scaleLog` and `scaleBand` for scales, `axisBottom` and `axisLeft` for axes, and a dropdown menu to switch between metrics. Data is sourced from a CSV file of Spotify’s top 10,000 songs and processed with `flatGroup`.
AI-generated descriptionA bar chart of Spotify Top 10,000 Songs using modified data with simple logaritmic axes.
This iteration comes from the tutorial Making a Bar Chart by Curran Kelleher.