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)

366e27ed8c8c423f8891570fca60a4d3

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
MMuhammad Ahmad
Last edited Aug 31, 2021
Created on Aug 31, 2021

This example demonstrates how to load and parse CSV data using D3 v5 and React. It fetches a remote CSV file containing CSS named colors and displays the dataset’s size in kilobytes, row count, and column count in a large text block. The primary approach uses `d3.csv` with a Promise-based `.then()` callback, while commented-out code illustrates alternative methods using `fetch` with `async/await` and `d3.csvParse`. The data source is a GitHub Gist hosted CSV file.

AI-generated description