Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
NNick Jefford-Horn
Last edited May 30, 2021
Created on May 29, 2021
Forked from Hello HTML

This example demonstrates how to load and parse a CSV file using D3.js version 6.7.0, displaying summary statistics about the dataset in a large preformatted text block. It fetches a remote CSV file containing CSS named colors from a GitHub gist, then uses `d3.csv` to parse the response. The code calculates and displays the file size in kilobytes, total row count, and column count using properties like `data.length` and `data.columns.length`. Commented-out alternatives show equivalent approaches using `fetch` with async/await and `d3.csvParse`.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes