Skip to main content
100%

Loading and Parsing CSV

✓ Published0🌍 Public
Bbingsen0806
Last edited Jun 15, 2021
Created on Jun 15, 2021
Forked from HTML Starter

This example shows how to load and parse a CSV file with D3 v7, displaying a summary of the dataset’s size, row count, and column count. It fetches a CSV of CSS named colors from a GitHub gist, then uses `d3.csv` to parse the text and `d3.csvFormat` to measure the data’s file size in kilobytes. The results are written to a `<pre>` element on the page using vanilla JavaScript and the `fetch` API for the initial request.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes