Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Parsing Data With D3

Public visualization

Viewing a saved revision (read-only)

97a3b71a1cf64214b38ead167f928c3a

Parsing Data With D3

0 stars0🌍 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.