Dropdown Axes For Spotify Peak Position Scatter Plot
✓ Published0🌍 Public
This example visualizes artists’ Spotify peak positions as a scatter plot, with dropdown menus controlling the gender filter and the year displayed on the y-axis. The x-axis shows gender categories, while point size reflects the selected position threshold. It uses d3.v7, loading CSV data via `d3.csvParse` and `fetch`, and employs `d3.flatGroup`, `d3.scaleLog`, `d3.scaleOrdinal`, and `d3.schemeSet1`. Axes are drawn with `d3.axisLeft` and `d3.axisTop`, with interactive dropdowns built using `d3.select` and event handlers.
AI-generated descriptionLoading a CSV file, Health Expenditure Dataset.
MIT Licensed