Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 Public
SShasvathan Pathmanaban
Last edited Nov 14, 2021
Created on Nov 14, 2021
Forked from HTML Starter

This example demonstrates a minimal D3 workflow for loading and parsing remote CSV data by fetching a raw GitHub-hosted file with the Fetch API. It first retrieves the text via `fetch` and `response.text()`, then parses it into a tabular dataset using `d3.csvParse`. The parsed result is summarized in a `<pre>` element, displaying the file size in kilobytes, row count, and column count. The visualization itself is purely textual, highlighting how D3’s parsing utilities transform raw CSV strings into structured data objects.

AI-generated description

A program that loads and parses some CSV data

MIT Licensed

Similar vizzes