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)

5c9fc56df07e4900b8b444dc8bd76766

Loading and Parsing CSV Data

0 stars1🌍 Public
Rrsulli4
Last edited Apr 28, 2023
Created on Apr 28, 2023
Forked from HTML Starter

This example demonstrates how to fetch and display the raw contents of a CSV file, specifically a list of CSS named colors. It shows the process of retrieving external data as text, which is the foundational step before any parsing or visualization can occur. The code uses the standard `fetch` API to request the file from a GitHub Gist URL, then applies the `response.text()` method to extract the string content. The resulting text is logged to the browser console using `console.log`, and an asynchronous alternative using `fetchText` and `await` is also provided.

AI-generated description

A program that loads and parses some CSV data.