Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

394a2312b7924da6ae52b5ce2e066e77

Loading and Parsing CSV Data

0 stars0🌍 Public
Sspace-captain96
Last edited Jun 21, 2022
Created on Jun 20, 2022
Forked from HTML Starter

This example demonstrates the basic process of loading and parsing CSV data by displaying the file size, row count, and column count of a remote dataset. It fetches a CSV file from a GitHub Gist using the `fetch` API, then parses it with `d3.csv` and re-formats it with `d3.csvFormat` to compute the kilobyte size. The parsed data’s dimensions are displayed in large text within a `<pre>` element. The code also includes an alternative commented-out approach using `d3.csvParse` on raw text.

AI-generated description

A program tha loads and parses some CSV data.