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
Ssagar basavaraj
Last edited Jun 7, 2021
Created on Jun 7, 2021

This example demonstrates how to load and parse CSV data using D3 v5 and React. It displays a summary of the CSS Named Colors dataset, showing the file size in kilobytes, row count, and column count. The primary implementation uses the `d3.csv` function with a Promise-based `.then()` callback. An alternative approach using `fetch`, `async`/`await`, and `d3.csvParse` is also provided in commented-out code. The output appears in a large `<pre>` element, and the example contrasts modern data-loading patterns with older callback-based methods.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed