Skip to main content
100%

Loading and Parsing spotify Data

✓ Published0🌍 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.

MIT Licensed

Similar vizzes