Skip to main content
100%

Spotify_Vertical Stylized Bar Chart

✓ Published0🌍 Public
Sstephanie0215
Last edited Nov 15, 2022
Created on Nov 15, 2022
Forked from Hello VizHub

This interactive visualization explores the distribution of audio features across a Spotify tracks dataset. It displays a vertical, stylized bar chart where each bar represents the count of tracks within a specific numerical bin for a user-selected attribute, such as popularity or danceability. The chart is built with React and D3 v7, using `d3.histogram()` and `scaleLinear` to compute and map the bins. A line overlay charts the average popularity for each bin, while dropdown menus allow users to switch between attributes and adjust the number of bins. The visualization renders as SVG and includes dual axes and a color legend to simultaneously show track counts and average popularity.

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