Skip to main content
100%

SpotifyData

✓ Published0🌍 Public
Aaaron.chu626@gmail.com
Last edited Nov 7, 2022
Created on Oct 28, 2022
Forked from Hello VizHub

This example loads a Spotify track dataset from a CSV file and renders a scatter plot using D3.js v7, which is imported via UNPKG. The visualization maps the `popularity` column to the x-axis and the `loudness` column to the y-axis, with each track represented as a red circle. The implementation uses D3’s `scaleLinear` for axis scaling, and the data is preprocessed in the main `index.js` module before being passed to the `scatter` function. The SVG output is 900 by 500 pixels.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes