Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Load data with D3 & React

Public visualization

Load data with D3 & React

0 stars1🌍 Public
Ssurikmeetr
Last edited Mar 4, 2021
Created on Mar 4, 2021
Forked from Mouse follower

This example demonstrates the composition of a data-loading pipeline using D3 and React hooks, displaying a summary of CSS color data fetched from a GitHub gist. It renders text output showing the dataset’s file size in kilobytes, row count, and column count. The code uses `useState` and `useEffect` to asynchronously load data via `d3.csv`, then formats the result with `d3.csvFormat`. React 16.9 manages the component lifecycle, while D3 v6 handles CSV parsing and formatting.

AI-generated description

loading data with d3.csv and react

Comments

Sign in to join the discussion.

MIT Licensed