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)

b34c7fb631e340df85543660c8eb759f

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
DDonna Perygin
Last edited Feb 28, 2021
Created on Feb 28, 2021

This example demonstrates how to load and parse CSV data using D3 v5 in a React application. It displays a summary of the CSS Named Colors dataset, showing the file size in kilobytes, row count, and column count. The code uses `d3.csv` to fetch and parse the data asynchronously, then accesses the parsed data’s `length` and `columns` properties. Alternative approaches using `fetch` with `async`/`await` and `d3.csvParse` are also included but commented out.

AI-generated description