🌍 Public
Viewing a saved revision (read-only)
14172501b8a242ef92ce46ac18bba94a
Loading and Parsing CSV Data
This example demonstrates how to load and parse a CSV file in a web page, displaying the file size, row count, and column count as large text. It fetches a remote CSV of CSS named colors using the Fetch API, then parses the text with `d3.csvParse` from D3 v7. The resulting statistics are written into a `<pre>` element, with the code structured around an asynchronous `fetchText` function and a commented-out alternative using nested promises. The page uses raw HTML, CSS, and JavaScript without any framework.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.