Skip to main content
100%

Loading and parsing CSV

✓ Published1🌍 Public
DDavid Beales
Last edited Mar 27, 2023
Created on Oct 3, 2022
Forked from HTML Starter

This example demonstrates the basic process of loading and parsing a CSV file with D3, displaying the file size, row count, and column count of the dataset. It fetches a CSV of CSS color names from a GitHub gist using `d3.csv`, then formats the response with `d3.csvFormat` to calculate its size in kilobytes. The code also includes commented alternatives using the Fetch API with async/await and `d3.csvParse` for manual text parsing.

AI-generated description

A program that loads and parses CSV.

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

See also React Starter.

MIT Licensed

Similar vizzes