Skip to main content
100%

loading and parsing csv data

✓ Published0🌍 Public
Jjchen6912
Last edited Apr 27, 2022
Created on Apr 25, 2022
Forked from HTML Starter

This example shows how to load and parse a CSV file using D3 v7, displaying basic statistics about the dataset in an HTML page. The code fetches a CSV of CSS named colors from a GitHub gist and uses `d3.csv` to parse the data, then reports the file size in kilobytes, row count, and column count using `d3.csvFormat`. The results are rendered into a `<pre>` element with large font styling, demonstrating a minimal React-free setup that relies on D3’s data-loading API and the native Fetch mechanism.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes