Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing spotify Data

Public visualization

Viewing a saved revision (read-only)

f39cf40d9a61422db8c067d8ee8f4114

Loading and Parsing spotify Data

0 stars0🌍 Public
Llynz09
Last edited Sep 24, 2020
Created on Sep 24, 2020

This example shows the size and structure of a Spotify top-tracks CSV dataset by displaying three summary metrics in large text: file size in kilobytes, row count, and column count. It loads the remote CSV with `d3.csv`, then reports the byte size using `d3.csvFormat`, while accessing row and column counts directly from the parsed data array and its `columns` property. The code also includes commented alternatives using `fetch` with `async`/`await` and `d3.csvParse`, plus a nested promise chain, illustrating different approaches to asynchronous data loading.

AI-generated description

spotify dataset [CSV] data:spotify-top.csv.