Load and Parse CSV
✓ Published0🌍 Public
This example demonstrates how to load and parse a CSV file from a remote URL, displaying basic metadata about the dataset in a plain HTML page. It fetches the raw text from a GitHub gist containing a list of CSS named colors, then uses D3 v6’s `d3.csvParse` to convert it into an array of objects. The page reports the file size in kilobytes, the row count, and the number of columns, writing these details to a `<pre>` element via `document.getElementByID`. The code relies on the Fetch API’s `fetch` and `response.text` method.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed