Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Fork of Loading Data with React & D3

0 stars0🌍 Public
PPaulo Dandrea
Last edited Jan 20, 2022
Created on Jan 20, 2022

This example demonstrates loading CSS named color data from a CSV file and displaying a summary of its size, row count, and column count as text. The visualization uses React state via the `useState` and `useEffect` hooks to fetch data asynchronously with D3’s `csv` function, then renders the result through a custom `message` function that formats the statistics. The page shows “Loading...” until the D3 v5 CSV parsing completes, after which the formatted summary appears in a large monospace font.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed