Skip to main content
100%

Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
SSong Tao Chen
Last edited Dec 27, 2021
Created on Dec 27, 2021

This example demonstrates how to fetch and log the contents of a CSV file containing CSS named colors, displaying the raw text in the browser console. It uses the Fetch API with an asynchronous `fetchText` function to retrieve the CSV from a GitHub Gist URL, then logs the parsed text output. The code also includes commented-out alternative syntax for handling the fetch response with nested promises. No visualization is rendered on the page; the body remains empty while the data loading process is shown through console output.

AI-generated description

loading data with fetch

MIT Licensed

Similar vizzes