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)

3696067d0d6e4ab7a647e60c6294ed3f

Loading and Parsing CSV data

0 stars1🌍 Public
MMarina Shemesh
Last edited Mar 8, 2021
Created on Mar 8, 2021
Forked from HTML Starter

This example demonstrates the foundational step of loading and parsing CSV data in a web-based visualization. It fetches a CSV file containing a CSS color list from a GitHub gist and logs the raw text to the browser console. The code uses the Fetch API with an asynchronous `fetchText` function, wrapping `fetch()` and `response.text()` to retrieve the data. While no visualization is rendered yet, it establishes the data-loading pattern essential for subsequent charting with libraries like D3.js.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

A program that loads and parse CSV data