Viewing a saved revision (read-only)
2a7a0df6a0c74eb4b4134e3c33299541
loading and parsing CSV data
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.