Skip to main content
100%

Fork of Fork of Loading and Parsing CSV Data

✓ Published0🌍 Public
AAdaman32
Last edited Feb 2, 2022
Created on Feb 2, 2022

This example demonstrates how to load and parse data from an external JSON API, specifically the NOAA solar-cycle prediction feed, using `d3.json` within a React framework. The page displays the parsed data in the browser console, though a commented-out alternative using `fetch`, `async`/`await`, and `d3.csvParse` shows how to compute and render file size, row count, and column count into an HTML `<pre>` element. The code runs with D3 v5 and includes commented variations highlighting different asynchronous patterns, such as a callback-based “pyramid of doom” approach.

AI-generated description
MIT Licensed

Similar vizzes