Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Ttorstenaan
Last edited Feb 24, 2021
Created on Feb 23, 2021
Forked from HTML Starter

This example demonstrates how to load and parse a CSV file using D3 v5, displaying basic statistics about the dataset in a large text block. The page fetches a CSV of CSS named colors from a GitHub gist via `d3.csv`, then computes the file size in kilobytes with `d3.csvFormat`, and counts the number of rows and columns before writing the results to a `pre` element. It showcases the asynchronous promise-based loading pattern and data inspection methods provided by D3’s CSV utilities.

AI-generated description

A program to parse and load CSV data.

MIT Licensed

Similar vizzes