Skip to main content
100%

Loading and Parsing CSV Data

✓ Published0🌍 Public
BBoris Gomaz
Last edited Feb 16, 2023
Created on Feb 15, 2023

This example demonstrates how to load and parse CSV data from a remote URL using D3's `d3.csv` function. The program fetches a dataset of CSS named colors from a GitHub gist and then displays a summary containing the dataset's file size, number of rows, and number of columns. The summary is rendered in large text within a `<pre>` element using the `d3.csvFormat` API and basic JavaScript string concatenation. The code highlights the simplicity of asynchronous data loading in D3 v7.

AI-generated description

A program that loads some CSV data

MIT Licensed

Similar vizzes