Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 and React data import

Public visualization

Viewing a saved revision (read-only)

1f84620932f84c1eabb61c71fe90aba3

D3 and React data import

0 stars1🌍 Public
RRahul Gupta
Last edited Mar 5, 2021
Created on Mar 5, 2021

This example displays a loading state followed by a full-width vertical stack of colored horizontal bars, each representing a CSS named color from a CSV file. The code uses React hooks (`useState`, `useEffect`) to fetch and store data, while D3’s `csv` function loads the remote dataset. Each row renders a `div` with a background color from the ‘RGB hex value’ column, creating a visual spectrum strip.

AI-generated description

A progarm that loads in some data using react and D3