Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Parsing CSV Data With D3

Public visualization

Viewing a saved revision (read-only)

9863f2881142427d83be5e21eaac784f

Parsing CSV Data With D3

0 stars0🌍 Public
YYann Bilodeau
Last edited Feb 17, 2022
Created on Feb 17, 2022

This example displays a text-based summary of a CSV file loaded from a remote URL, showing its size in kilobytes, row count, and column count. It uses D3’s `d3.csvParse` to convert raw text fetched via the Fetch API into structured data, then accesses the parsed array’s `length` and the `columns` property to extract the counts. The result is rendered in a large `<pre>` element, with the data sourced from a GitHub Gist.

AI-generated description

A program that loads and parses some csv data!!