Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

CSV Data Pt 1 - Loading and Parsing

Public visualization

CSV Data Pt 1 - Loading and Parsing

0 stars1๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed