🌍 Public
Viewing a saved revision (read-only)
49aa85c008324b7d8ed26ea3c39ff3f3
Loading and Parsing CSV Data
This example demonstrates how to load and parse CSV data in a web browser. It fetches a CSS named colors dataset from a GitHub gist, then displays the file size, column count, and row count in large text. The code uses the browser’s Fetch API to retrieve the raw text and D3 v7’s `d3.csvParse` to convert it into structured data. The final version reads the metrics from the parsed result and updates the page content accordingly.
AI-generated descriptionHalf way towards a smiley face.