Skip to main content
Public

Share visualization

Loading preview…

Comparison of two different kind of track genre

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Comparison of two different kind of track genre

0
Sstephanie0215
Last edited Nov 21, 2022
Created on Nov 15, 2022

This interactive visualization compares audio attributes of two track genres from a Spotify dataset. Users select genres from dropdown menus, and the view displays mirrored horizontal bar charts showing attribute averages (like danceability, energy, and tempo) side by side, with a third bar chart breaking down attribute values in detail. The D3.js v7 scales and SVG rendering handle the chart layout, while React state manages user selections and filters the CSV data, computing averages per genre to support direct comparison.

AI-generated description

A program that loads in some data using D3 utilities, and uses REACT state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed