Skip to main content
100%

Parsing Data With D3

✓ Published0🌍 Public
DDavid Allyn
Last edited Dec 2, 2021
Created on Dec 2, 2021

This example demonstrates how D3’s `d3.csv` method asynchronously fetches and parses a CSV file from a GitHub Gist, then uses `d3.csvFormat` to convert the parsed data back into text. The page displays a large summary in a `<pre>` element showing the total row count, column count, and approximate data size in kilobytes. The code also includes commented-out manual `fetch` and `d3.csvParse` alternatives, highlighting D3’s built-in parsing pipeline in a minimal HTML document.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

A program to load and parse a CSV file See also React Starter.

MIT Licensed

Similar vizzes