Skip to main content
100%

Loading and Parsing CSV Data

✓ Published2🌍 Public
Ppytorchgirl
Last edited Dec 4, 2021
Created on Dec 3, 2021
Forked from HTML Starter

This example displays a summary of a CSV file loaded from a GitHub gist, showing the file size, row count, and column count in large text. It uses the `fetch` API to retrieve the raw text, then parses it with the `d3.csvParse` function from D3 v5. The parsed data’s `length` and `columns` properties provide the row and column totals, which are rendered into an HTML `<pre>` element via JavaScript.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes