Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 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
MIT Licensed

Similar vizzes