Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and parsing CSV

Public visualization

Loading and parsing CSV

0 stars0🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed