Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
TTung Pham
Last edited Mar 14, 2021
Created on Mar 13, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data using D3.js, displaying the file size, row count, and column count of a remote dataset containing CSS named colors. It uses `d3.csv` to fetch and parse the data from a GitHub gist URL, then formats the output with `d3.csvFormat` to calculate the data’s size in kilobytes. The message is rendered into a `<pre>` element with large typography. A commented-out alternative using the Fetch API and `d3.csvParse` shows an equivalent approach.

AI-generated description

A program that loads and parses CSV data

MIT Licensed

Similar vizzes