Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
Mmatheus-sa-ferreira
Last edited Mar 18, 2021
Created on Mar 16, 2021
Forked from Hello HTML

This example demonstrates how to load and parse CSV data using D3 v6’s `d3.csv` method, which fetches a remote file and returns a promise. The parsed dataset, sourced from a GitHub gist containing CSS named colors, is summarized with three metrics: file size in kilobytes using `d3.csvFormat`, row count, and column count. These values are concatenated into a message and displayed inside a `<pre>` element. The code also includes commented-out alternatives using the Fetch API and `d3.csvParse`.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes