Skip to main content
100%

Loading and Parsing CSV data

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

MIT Licensed

Similar vizzes