Viewing a saved revision (read-only)
ec9cbb4fa3a24406b7d457e0842924b6
SPOTIFY - Scatter Plot
This interactive scatter plot visualizes Spotify listening habits, mapping metrics like average listening time, total songs played, and mood score. Users switch X and Y axes via dropdown selectors, while circle color encodes Mood_Score through d3.interpolateTurbo, and size encodes New_Artists_Discovered via d3.scaleSqrt. Hovering reveals a tooltip and focus ring. The D3 v7 SVG chart includes gridlines, axes, transitions on points, and a custom CSV loader that flattens single-line data.
AI-generated descriptionSpotify Habits — Scatter Plot (D3)
This VizHub shows a reusable D3 scatter plot driven by spotify_habits_full.csv.
- X:
Avg_Listening_Time(minutes) - Y:
Total_Songs_Played - Color:
Mood_Score - Size:
New_Artists_Discovered
Files
index.html— minimal page shellindex.js— loads CSV, configures accessors, renders plotscatterPlot.js— reusable chart with a fluent APIstyles.css— dark theme styling
Data
CSV is loaded directly from your Gist URL.
If you want different axes or encodings, update the
accessors in index.js.