Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
BBeihaiTianming
Last edited Feb 18, 2021
Created on Feb 18, 2021

This example displays the size and structure of a CSV dataset containing CSS named colors, showing its file size in kilobytes, row count, and column count. It loads the data from a GitHub gist using `d3.csv`, then formats and measures the content with `d3.csvFormat`. The code also includes commented alternatives using the Fetch API with `async`/`await` and `d3.csvParse`, demonstrating different approaches to parsing CSV data. The results appear in a large `<pre>` element.

AI-generated description
MIT Licensed

Similar vizzes