🌍 Public
Viewing a saved revision (read-only)
bd4b7b74e19c43f38fa770b10cd06d8e
Loading and Parsing CSV Data
This example demonstrates how to load and parse a CSV file in the browser using the Fetch API. It fetches a CSV of named CSS colors from a GitHub gist and logs the raw text content to the console. The code defines an asynchronous `fetchText` function that uses `fetch` and `response.text()` to retrieve the data, with a commented-out alternative using promise chaining. No visualization or chart is rendered; the focus is purely on data acquisition and text output.
AI-generated descriptionA bare minimum HTML page.