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)

4d749992d0f84ae08ef65ed1adc75027

Loading and Parsing CSV Data

0 stars0🌍 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