Skip to main content
100%

Loading data with react & d3

✓ Published1🌍 Public
Bbsolomon103
Last edited Dec 29, 2021
Created on Dec 27, 2021

This example demonstrates how to load and summarize CSS named colors data using React and D3. It fetches a CSV file via D3’s `csv` utility, stores the result in React state with `useState` and `useEffect`, and displays the dataset’s row count, column count, and file size in kilobytes as plain text. The page uses React 16.9 and D3 v7, rendering text inside a `<pre>` element with SVGs commented out in the HTML.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities and React state to keep track of the data.

MIT Licensed

Similar vizzes