Skip to main content
100%

Spotify Songs Scatterplot

✓ Published0🌍 Public
Mmacgregorm01@gmail.com
Last edited Sep 17, 2024
Created on Sep 17, 2024

This scatter plot visualizes the relationship between tempo and valence for a dataset of Spotify songs, where each circle represents a track’s musical attributes. The visualization uses D3’s `scaleLinear` and `axisLeft` to map the data, with circles colored by opacity to reveal density in overlapping regions. The chart is built via the reusable `viz` function, which handles axes, labels, and the plotting of points. The underlying data comes from the `@mjmacgregor/spotifysongs` package, and the example is intended as a template for adapting to other datasets.

AI-generated description

A simple scatter plot with D3 showing the Penguins Dataset.

Challenge

  • Fork this viz
  • Modify it to show your data
MIT Licensed

Similar vizzes