Skip to main content
100%

CSV Data Pt 1 - Loading and Parsing

✓ Published1🌍 Public
Jjulesgentry
Last edited Jul 29, 2022
Created on Jul 29, 2022
Forked from Hello HTML

This example demonstrates the initial step of working with CSV data by loading a remote file and outputting its raw contents to the browser console. It fetches a plain-text CSV file containing CSS color names from a GitHub gist using the Fetch API, wrapped in an async function called `fetchText`. The program then calls `console.log(text)` to display the parsed response, showing the data before any visualization or transformation occurs. The code includes a commented-out alternative using chained `.then()` promises, illustrating both fetch patterns for handling asynchronous text responses.

AI-generated description

A program that loads and parses CSV data

MIT Licensed

Similar vizzes