Dropdown Axes For Spotify Peak Position Scatter Plot
This scatter plot visualizes data from Spotify’s Top 10,000 songs, showing artists’ peak chart positions against the number of songs they have in the top list, with point size and color encoding additional metrics. Two dropdowns let the viewer filter the x-axis range and change the y-axis variable. Built with D3 v7, the code uses `scaleLog` for the logarithmic axes, `flatGroup` for data aggregation, and a custom `dropdown` component to handle user input, fetching the CSV data from a GitHub gist.
AI-generated descriptionA colored scatter plot of Spotify Top 10,000 Songs using modified data with simple logaritmic axes.
This iteration adds a dropdown to narrow down the x-axis from top 10,000 songs to fewer, and a dropdown to change the y-axis, using the dropdown script from this viz.