Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of React Starter

Public visualization

Fork of React Starter

0 stars0🌍 Public
Sshubhanshu2000
Last edited Mar 12, 2022
Created on Mar 10, 2022
Forked from React Starter

This example demonstrates a React component that fetches a CSV file of named CSS colors using D3’s `csv` method and displays a simple status message indicating whether the data has loaded. The visualization uses React hooks (`useState`, `useEffect`) to manage asynchronous data fetching, with D3 v7 handling the CSV parsing. The page shows only text—“data” or “no data”—based on the fetch result, with styling applied via inline CSS for a large centered message. The code runs in a browser environment with React and D3 loaded via CDN.

AI-generated description

React Starter code.

Comments

Sign in to join the discussion.

MIT Licensed