Skip to main content
100%

Rendering Data With React D3

✓ Published2🌍 Public
DDusty
Last edited Aug 6, 2021
Created on Jul 22, 2021
Forked from Mouse Follower

This example shows CSS named colors loaded from a GitHub Gist as CSV data, rendered as a vertical stack of thin horizontal bars whose background colors match each color’s hex value. Using React 17 hooks (`useState`, `useEffect`) and `d3.csv` for loading, it maps each row to a styled `div` element, displaying a loading message until the data arrives. The code also defines a separate `message` utility that reports the data’s approximate size, row count, and column count using `d3.csvFormat`.

AI-generated description

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

MIT Licensed

Similar vizzes