Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 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.

MIT Licensed

Similar vizzes