Skip to main content
100%

Loading & Parsing CSV Data

✓ Published0🌍 Public
AAnthony Zornig
Last edited Oct 2, 2021
Created on Oct 2, 2021
Forked from HTML Starter

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 description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes