Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Example Spotify Songs Scatter Plot

Public visualization

Viewing a saved revision (read-only)

f18318bead3e4e3b8be35d685b73e351

Example Spotify Songs Scatter Plot

0 stars0🌍 Public
Mmacgregorm01@gmail.com
Last edited Sep 26, 2024
Created on Sep 25, 2024

This scatter plot maps 50 mock Spotify songs, with energy on the x-axis and popularity on the y-axis, while point color encodes valence using a three-shade blue palette. Both scales are constructed with `d3.scaleLinear` and `d3.extent`, and axes are rendered via the `@mjmacgregor/axis-labels` helper library for labeled ticks. The visualization is rendered as SVG circles with opacity, and the underlying data is generated randomly using `Math.random()` in the main script, mimicking song attributes without a real dataset.

AI-generated description