Skip to main content
100%

Loading and Parsing CSV Data

✓ Published1🌍 Public
Jjiro2017
Last edited Sep 16, 2021
Created on Sep 15, 2021
Forked from D3 Starter

This example demonstrates the initial step of working with CSV data in D3: loading a remote file and parsing it into a usable dataset. It fetches the `CssNamedColors.csv` file from a GitHub gist using the Fetch API, then applies `d3.csvParse` to convert the raw text into an array of objects. The code calculates and displays the total number of rows, columns, and file size in kilobytes within a large text element. It uses `d3.csvParse` and the built-in `fetch` method under D3 v7.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes