Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
MMamveguh
Last edited Mar 19, 2022
Created on Mar 19, 2022
Forked from HTML Starter

This example demonstrates how to load and summarize a CSV file using D3 v7. It fetches a remote dataset containing CSS named colors from a GitHub gist, then displays the file size, row count, and column count in a large text element. The code uses the Fetch API to retrieve the raw text and D3’s `d3.csv` to parse it into an array of objects, with `d3.csvFormat` measuring the parsed data’s size. The page dynamically renders these statistics into an HTML `<pre>` container.

AI-generated description

A program that loads and parses CSV data.

MIT Licensed

Similar vizzes