Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
DDaniel Russell-Brain
Last edited Oct 28, 2020
Created on Oct 28, 2020
Forked from HTML Starter

This example demonstrates the process of loading a remote CSV file and inspecting its basic properties. It fetches the data from a GitHub gist containing CSS named colors and uses the D3.js library's `d3.csv` method to parse the text. The resulting message displays the number of rows and columns in the dataset, along with an approximate file size in kilobytes, all rendered in a large `<pre>` element. The code relies on the JavaScript `fetch` API to retrieve the raw text before parsing, showcasing a straightforward parsing workflow.

AI-generated description

A program that loads and parses CSV data

MIT Licensed

Similar vizzes