Skip to main content
100%

Loading and Parsing CSV data

✓ Published0🌍 Public
YYibo Zhang
Last edited Jan 7, 2022
Created on Jan 7, 2022
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL, displaying summary statistics about the dataset: file size in kilobytes, row count, and column count. The visualization uses the D3.js v7 library’s `d3.csv` method to fetch and parse the data asynchronously. It also shows an alternative commented-out approach using the Fetch API with `async`/`await` and `d3.csvParse`. The data comes from a GitHub Gist containing CSS named colors, and results are rendered as text in an HTML `<pre>` element.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes