Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Jjwlam83
Last edited Jan 8, 2022
Created on Jan 8, 2022
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3 v7, displaying the file size, row count, and column count in a large text element. It fetches a remote CSV file of CSS colors using `d3.csv`, which returns a parsed array of objects, and formats the file size with `d3.csvFormat`. The code also includes commented-out alternatives using native `fetch` and `d3.csvParse`, and uses plain HTML and CSS for a minimal page layout.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes