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 stars1🌍 Public
AAdaman32
Last edited Feb 2, 2022
Created on Feb 2, 2022

This example demonstrates two approaches to loading remote data in a browser using D3 v5 and React. It fetches JSON from NOAA’s estimated planetary K-index service, logging the parsed array to the console via `d3.json().then()`. An alternate, commented-out path shows using `fetch` with `async`/`await`, parsing CSV text with `d3.csvParse`, and displaying file size, row count, and column count in a large `<pre>` element. The code highlights modern promise-based data loading versus older callback patterns.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed