Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
JJosoArenas
Last edited Jul 1, 2021
Created on Jun 29, 2021
Forked from HTML Starter

This example demonstrates loading and parsing CSV data using D3 v5, displaying basic statistics about the dataset in a large HTML element. The code fetches a CSV file containing CSS named colors from a GitHub gist, uses `d3.csv()` to parse it asynchronously, and then computes the formatted size in kilobytes, the number of rows, and the number of columns. The results are rendered as text in a `<pre>` element, with the message built from `d3.csvFormat(data).length` and the parsed array’s properties.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes