Skip to main content
100%

Loading and parsing CSV data with D3

✓ Published0🌍 Public
Mmaxthamt
Last edited Mar 12, 2021
Created on Mar 12, 2021

This example demonstrates how to load and parse CSV data from a remote URL using D3 v5, displaying the file size, row count, and column count of the dataset. It fetches a CSV containing CSS named colors via `d3.csv`, then uses `d3.csvFormat` to measure the data’s byte size. The code also shows commented alternatives using the Fetch API, `d3.csvParse`, and async/await functions. Results appear in a large, preformatted text element.

AI-generated description

A program that loads and parses some CSV data.

MIT Licensed

Similar vizzes