Skip to main content
100%

Loading and Parsing CSV Data

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

This example demonstrates loading and parsing a CSV file in the browser. It first fetches a remote CSV containing CSS named colors, then uses `d3.csvParse` to convert the raw text into a structured array of objects. The visualization displays summary statistics about the parsed data—file size in kilobytes, number of rows, and number of columns—in a large `<pre>` element. The code relies on the native `fetch` API within an async function, and renders results as plain text without any charts or graphical elements.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes