Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Nnkarinti
Last edited Jun 28, 2023
Created on Jun 28, 2023

This example demonstrates the basic workflow of loading and parsing CSV data with D3.js. It displays statistics about the dataset—file size in kilobytes, column count, and row count—in a large pre-formatted text block. The program fetches a CSV file containing named CSS colors from a GitHub gist using `d3.csv()`, then formats the parsed data back into a string with `d3.csvFormat()` to measure its size. The code also includes an alternative commented-out approach using `fetch()` and `d3.csvParse()` for comparison.

AI-generated description

A program that loads and parses some CSV data.

Comments

Sign in to join the discussion.

MIT Licensed