🌍 Public
Viewing a saved revision (read-only)
270a34391af24ec3a056a778bea67c6f
Loading and Parsing CSV Data
This example demonstrates how to fetch and read a CSV file from a remote URL using the `fetch` API. The code loads the cssNamedColors dataset from a GitHub gist and logs its raw text content to the browser console. It uses the `fetchText` function, which employs `fetch` and `response.text()` to retrieve the data asynchronously. The page’s console output displays the parsed CSV data, showing the first step in processing tabular data for visualization.
AI-generated descriptionA bare minimum HTML page.