Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React

Public visualization

Fork of Rendering Data with React

0 stars0🌍 Public
SStoniee-duplicate
Last edited Apr 7, 2021
Created on Apr 7, 2021

This example renders a dataset of color values as a series of horizontal stripes, each colored according to the RGB hex value in the data. The visualization uses React with hooks, including `useState` and `useEffect`, to load the CSV data from a GitHub gist via d3’s `csv` function. Each stripe is a `<div>` element styled with inline CSS, creating a stacked bar chart-like display that fills the viewport width.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed