Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Loading and Parsing CSV Data

0 stars0🌍 Public
MMatty Danbury
Last edited Sep 7, 2022
Created on Sep 7, 2022
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file in a web page, displaying the file size, row count, and column count as large text. It fetches a remote CSV of CSS named colors using the Fetch API, then parses the text with `d3.csvParse` from D3 v7. The resulting statistics are written into a `<pre>` element, with the code structured around an asynchronous `fetchText` function and a commented-out alternative using nested promises. The page uses raw HTML, CSS, and JavaScript without any framework.

AI-generated description

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

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed