Skip to main content
100%

Vizualizing Data With React

✓ Published1🌍 Public
LLeandro Da Souza
Last edited Mar 25, 2021
Created on Mar 25, 2021

This example displays all 148 named CSS colors as a vertical strip of horizontal lines, one per color, ordered as they appear in a CSV file loaded from a GitHub gist. Using React with ReactDOM, the app fetches the CSV via D3 v6’s `d3.csv`, stores the parsed rows in state with a `useState` hook, and renders each color’s hex value as a div’s `backgroundColor`. The lines span the full window width at four pixels tall, creating a simple color spectrum visualization that updates after the asynchronous data load completes.

AI-generated description

using React to render and visualize data

MIT Licensed

Similar vizzes