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)

59824a56dddc4f40938d553725461953

Fork of Loading and Parsing CSV Data

0 stars0🌍 Public
Bblueyjuice
Last edited Nov 10, 2021
Created on Nov 10, 2021

This example demonstrates how to load and parse CSV data using D3 and React. It fetches CSS Named Colors data from a GitHub gist and displays the file size in kilobytes, row count, and column count in a large text format. The code uses `d3.csv` with a Promise-based `.then` method, while commented alternatives show `fetch` with `async/await` and `d3.csvParse`. The React component renders the result into a `<pre>` element, with D3 version 5 and React 16 loaded from CDNs.

AI-generated description