Skip to main content
100%

Loading and Parsing CSV Data

✓ Published2🌍 Public
BBen Brophy
Last edited Dec 30, 2021
Created on Dec 29, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data with D3 v7, displaying summary statistics about the dataset in a large text element. It fetches a CSV file containing CSS named colors from a GitHub gist, then uses `d3.csv` to parse the remote data and `d3.csvFormat` to calculate the formatted size in kilobytes. The output shows the total data size, row count, and column count, rendered directly into an HTML `<pre>` element via `textContent`.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes