Skip to main content
100%

2. Loading and parsing some CSV data

✓ Published0🌍 Public
DDenis Zjukow
Last edited Sep 14, 2021
Created on Sep 14, 2021
Forked from HTML Starter

This example shows how to load and parse CSV data from a remote URL, then display summary statistics about the dataset. It fetches a CSV file containing CSS named colors, parses it with the `d3.csvParse` function from the `d3-dsv` library, and reports the file size in kilobytes, row count, and column count. The parsed data is displayed as plain text inside a styled `<pre>` element. The code uses the Fetch API to retrieve the text asynchronously before processing it.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes