Skip to main content
100%

Loading and parsing CSV data

✓ Published0🌍 Public
Cchrismeeky
Last edited Oct 17, 2021
Created on Oct 17, 2021
Forked from HTML Starter

This example demonstrates how to load and parse CSV data using D3 v7. It displays the dataset size in kilobytes, column count, and row count as plain text on the page. The code uses `d3.csv` to fetch and parse a remote CSV file containing CSS named colors from a GitHub gist, then formats a summary message with `d3.csvFormat` to calculate the size. An alternative commented-out approach using the Fetch API with `d3.csvParse` is also shown.

AI-generated description

A program that loads and parses CSV data

MIT Licensed

Similar vizzes