Skip to main content
100%

CSV Parse etc

✓ Published0🌍 Public
EErik
Last edited Oct 12, 2021
Created on Oct 12, 2021
Forked from Hello HTML

This example fetches a CSV file containing CSS named colors and displays a summary of its contents, including file size, row count, and column count, in large text on a web page. It uses the Fetch API to retrieve the text, then `d3.csvParse` to parse the data into an array of objects. The code accesses `data.length` and `data.columns` to compute the statistics, and writes the result to a `<pre>` element via `document.getElementById`. The page loads D3 v5 from a CDN.

AI-generated description

A bare minimum HTML page.

MIT Licensed

Similar vizzes