Skip to main content
100%

Loading and parsing CSV

✓ Published0🌍 Public
FFreektenDoesschate
Last edited Aug 31, 2021
Created on Aug 28, 2021
Forked from HTML Starter

This example demonstrates the first step of fetching a remote CSV file and logging its raw text content to the browser console. A large, static "CSV" label is centered on a plain white page, while the JavaScript asynchronously retrieves the file from a GitHub Gist using the `fetch` API and the `response.text()` method. The code includes a commented-out alternative approach in addition to the active `fetchText` helper, which wraps the fetch and text parsing into a reusable async function. No parsing or visualization of the CSV data occurs, only retrieval and inspection of the raw string.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes