Skip to main content
100%

Loading and Parsing CSV Data

✓ Published1🌍 Public
BbeauMarko
Last edited Oct 13, 2021
Created on Oct 9, 2021
Forked from HTML Starter

This example demonstrates the basic workflow of loading and parsing CSV data with D3.js v7. It fetches a remote CSV file containing CSS named colors from a GitHub gist and displays key statistics about the dataset, including its size in kilobytes, row count, and column count. The code uses the Fetch API to retrieve the raw text, then applies `d3.csvParse` to convert it into an array of objects, while also showing `d3.csv` for direct asynchronous loading. The parsed results are logged to the browser console and summarized in a large text display.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes