Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with react & d3

Public visualization

Viewing a saved revision (read-only)

da98deb750e74330914ed55ba5613d7f

Loading data with react & d3

0 stars1🌍 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.