Skip to main content
100%

Parsing CSV Data with D3

✓ Published1🌍 Public
AAndy Chang
Last edited Sep 27, 2022
Created on Sep 27, 2022

This example demonstrates how to parse CSV data using D3 within an HTML page. The page fetches a CSV file of named CSS colors from a GitHub gist, parses it with `d3.csvParse`, and displays the total number of rows, columns, and file size in kilobytes as large text. The code relies on the Fetch API to retrieve the raw text asynchronously, then uses D3 v7’s `csvParse` to structure the data. This highlights a minimal workflow for loading and summarizing tabular data before visualization.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes