Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Dropdown Axes For Spotify Peak Position Scatter Plot

Public visualization

Viewing a saved revision (read-only)

08e9058b91b74d7ead8d28585ab1ad37

Dropdown Axes For Spotify Peak Position Scatter Plot

0 stars0🌍 Public
KKhatera Alizada
Last edited Mar 12, 2023
Created on Mar 12, 2023

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 description

Loading a CSV file, Health Expenditure Dataset.