Skip to main content
100%

Loading And Parsing CSV Data

✓ Published0🌍 Public
AAngel Lam
Last edited Mar 12, 2021
Created on Mar 7, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data from a remote URL, then displaying basic statistics about the dataset. It uses D3 v6’s `d3.csv` method to fetch and parse the file, followed by `d3.csvFormat` and `d3.csvParse` for additional processing. The code counts the data size in kilobytes, the number of rows, and the number of columns, rendering these results in a large `<pre>` element. The data source is a GitHub gist containing CSS named colors.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes