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)

1e2cfeda590a43389b8c3f5ec0ff93f0

Loading and Parsing CSV data

0 stars0🌍 Public
CChrisGaul
Last edited Sep 29, 2021
Created on Sep 28, 2021
Forked from HTML Starter

This example loads a CSV file of CSS named colors from a GitHub gist and displays a summary of its size and structure. It counts the number of rows and columns and computes the formatted data size in kilobytes. The code uses D3 v7’s `d3.csv` method to asynchronously fetch and parse the data, then `d3.csvFormat` to measure its serialized size. The result is rendered as plain text inside a `<pre>` element using standard DOM manipulation.

AI-generated description

A program that loads and parses some CSV data