Skip to main content
Public

Share visualization

Loading preview…

Vega-Lite API Template for Spotify Music Attributes

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

Vega-Lite API Template for Spotify Music Attributes

0
DdaojunL
Last edited Sep 25, 2020
Created on Sep 24, 2020

This scatterplot visualizes Spotify music attributes, plotting liveness scores against a binary target variable to examine their correlation. The visualization uses the Vega-Lite API within a D3 v5 framework, loading data from a TSV file hosted on GitHub. The chart encodes the target attribute on the x-axis, liveness on the y-axis, and track names as tooltips. Data comes from the Spotify Music Attributes dataset on Kaggle, with appearance customization handled through a shared config object that adjusts font sizes and axis styling.

AI-generated description

A visualization constructed using the vega-lite-api.

Original data source: Spotify Music Attributes

From the graph, we can see that if the liveness score is below 0.8, it doesn't affect the author's likeliness, but if the liveliness is more than 0.8, then it usually means the author likes music. But the liveliess can also be correlated to other attributes. So, the correlation of the liveliness and the author's likeliness is not obvious from the graph.

Comments

Sign in to join the discussion.

MIT Licensed