Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading and Parsing CSV Data

Public visualization

Viewing a saved revision (read-only)

f2927771945348a08bb243ed1f0d7005

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Mmatg
Last edited Jan 21, 2022
Created on Jan 20, 2022

This example demonstrates how to load and parse CSV data using D3.js version 7 within a React framework, displaying summary statistics about the CSS Named Colors dataset. It uses `d3.csv` to fetch and parse the remote CSV file, then reports the file size in kilobytes, row count, and column count in a large text format. The visualization highlights the simplicity of D3’s built-in promise-based data loading, contrasting it with commented-out alternatives using `fetch` and `d3.csvParse`. The output is rendered as plain text in an HTML `<pre>` element.

AI-generated description