Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
NNadir-Zenith
Last edited Aug 27, 2021
Created on Aug 27, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data from a remote URL using D3.js version 7. It fetches a dataset of CSS named colors and displays three summary statistics: the file size in kilobytes, the number of rows, and the number of columns. The code uses `d3.csv` to asynchronously load and parse the data, then `d3.csvFormat` to measure its size, and updates the text content of an HTML `<pre>` element. Alternative commented-out approaches show the use of `fetch` with `async`/`await` 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