🌍 Public
Viewing a saved revision (read-only)
9de671dc49cb463bad976429f90bc1e6
Loading & Parsing CSV Data
This example demonstrates the process of loading and parsing CSV data by displaying key statistics about the dataset: its size in kilobytes, the number of rows, and the number of columns. It uses D3 v5’s `d3.csv` method to fetch and parse the data from a GitHub Gist URL, then formats the statistics into a readable message using `d3.csvFormat`. The result is rendered as large text inside a `<pre>` element styled with CSS. The code also includes an alternative commented-out approach using `fetchText` and `d3.csvParse`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.