Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 Public
MMorshai
Last edited Sep 13, 2021
Created on Aug 22, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data in D3 v7, displaying the dataset’s size, row count, and column count in a large, styled text block. It fetches a CSV of CSS named colors from a GitHub gist using `d3.csv`, then computes the file size from the formatted output via `d3.csvFormat`. The code also includes a commented alternative using the Fetch API with `d3.csvParse` for manual parsing.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes