🌍 Public
Loading Data with React & D3
Yyastika
Last edited Apr 17, 2021
Created on Apr 9, 2021
Forked from Smiley Face Part 3 - Interaction with React
This example demonstrates loading CSS named color data using React state and D3 utilities. The app displays a simple text summary showing the data size in kilobytes, row count, and column count, with a loading message before data arrives. It uses React’s `useState` hook to store the parsed CSV data and D3’s `csv` function to fetch and parse the remote dataset from a GitHub gist. The rendered output is a large `<pre>` element styled with a 5em font size, showing the computed metrics dynamically.
AI-generated descriptionA program that loads in some data about css named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed
Comments
Sign in to join the discussion.