Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

4df0ef50f658486da1c2676b0db306f4

Fork of Loading and Parsing CSV Data

0 stars0🌍 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