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)

09e4180bac4646dc998151a1450e065d

Loading and Parsing CSV Data

0 stars0🌍 Public
GGabriel
Last edited Apr 6, 2022
Created on Mar 30, 2022
Forked from HTML Starter

This example demonstrates how to load and parse a remote CSV file, displaying summary statistics about the dataset in large text. It fetches named CSS color data from a GitHub gist using `d3.csv`, then computes and shows the file size in kilobytes, the total number of rows, and the column count. The code uses D3 v7’s `d3.csv` promise API and `d3.csvFormat` to measure the parsed data’s size, appending the results to a `<pre>` element with DOM methods. The visualization is purely textual, highlighting basic data inspection after asynchronous loading.

AI-generated description