Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

bd4b7b74e19c43f38fa770b10cd06d8e

Loading and Parsing CSV Data

0 stars0🌍 Public
TTarek719
Last edited Aug 3, 2022
Created on Aug 3, 2022
Forked from Hello HTML

This example demonstrates how to load and parse a CSV file in the browser using the Fetch API. It fetches a CSV of named CSS colors from a GitHub gist and logs the raw text content to the console. The code defines an asynchronous `fetchText` function that uses `fetch` and `response.text()` to retrieve the data, with a commented-out alternative using promise chaining. No visualization or chart is rendered; the focus is purely on data acquisition and text output.

AI-generated description

A bare minimum HTML page.