Skip to main content
100%

loading and parsing CSV data

✓ Published1🌍 Public
SSamuele Greco
Last edited Feb 3, 2022
Created on Feb 2, 2022
Forked from HTML Starter

This example demonstrates the initial step of working with external data in a web visualization: fetching and logging raw CSV content. It uses the browser’s native `fetch` API to asynchronously retrieve a text file from a GitHub gist URL, then parses the response with `response.text()`. The result is printed to the browser console via `console.log`, showing the raw comma-separated data as a string. No parsing library like d3.csv or PapaParse is involved, and no visual output is rendered—only the raw text is exposed for inspection. The approach relies on plain JavaScript and a local async function, `fetchText`, to handle the request.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes