Skip to main content
100%

Loading and Parsing CS Data

✓ Published0🌍 Public
Bboreilly26
Last edited Dec 29, 2021
Created on Dec 29, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3 v7, displaying the file size, row count, and column count of a CSS named colors dataset. The code uses `d3.csv` to fetch and parse the remote CSV from a GitHub gist, then `d3.csvFormat` to measure the formatted data’s byte size. The resulting statistics appear in large text within an HTML `<pre>` element. The example shows both the primary `d3.csv` promise-based approach and commented-out alternatives using `fetchText` and `d3.csvParse`.

AI-generated description

A program that loads and parses CSV data

MIT Licensed

Similar vizzes