Skip to main content
100%

Fork of D3 Starter

✓ Published0🌍 Public
PPeter Regalbuto
Last edited Feb 23, 2026
Created on Feb 23, 2026
Forked from D3 Starter

This horizontal bar chart shows Spotify streaming totals for twenty popular artists, with each bar's length proportional to the artist's total streams in millions. The visualization sorts artists from smallest to largest stream counts and includes hover tooltips displaying the artist name and exact stream value. Built with D3 v7, the chart uses `d3.csv` for data loading, `d3.scaleBand` for the categorical y-axis, `d3.scaleLinear` for the numeric x-axis, and `d3.axisBottom`/`d3.axisLeft` for axis rendering, with bars drawn as SVG rectangles through the `selectAll().enter().append('rect')` API. The data comes from a CSV file containing top Spotify songs from 2025.

AI-generated description
MIT Licensed

Similar vizzes