Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
JJacob Pingel Lauridsen
Last edited Jan 13, 2023
Created on Jan 12, 2023

This visualization demonstrates how to load and parse CSV data using D3 v7, displaying basic statistics about the dataset in a large text format. The example fetches a CSV file containing CSS named colors from a GitHub Gist, then uses `d3.csv` to parse it asynchronously and `d3.csvFormat` to measure the raw data size. It outputs the file size in kilobytes, the total row count, and the number of columns into a `<pre>` element. The code also includes commented alternatives using `fetch` with `async`/`await` and `d3.csvParse` for manual text parsing.

AI-generated description

A program that loads and parses some CSV data

MIT Licensed

Similar vizzes