Skip to main content
100%

music vis

✓ Published0🌍 Public
Aa15923647
Last edited Nov 5, 2022
Created on Nov 5, 2022
Forked from Fork of D3 Starter

This interactive scatterplot maps Spotify track attributes against one another, letting users select any two numeric columns from the dataset to compare on the x- and y-axes. The visualization updates dynamically through D3 v7's `scaleLinear`, `axisBottom`, and `axisLeft` APIs, rendering circles positioned by the chosen metrics. The code assigns CSS classes to each point based on a track genre field, although the dataset’s example rows lack a genre column, so the legend and color-coding rely on that optional data. The SVG plot includes labeled axes and a title reflecting the current variable pair.

AI-generated description
MIT Licensed

Similar vizzes