Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with react and d3

Public visualization

Viewing a saved revision (read-only)

caa95d0fc96d4558aa87f4bddecbe732

Loading data with react and d3

0 stars0🌍 Public
Eelia-dot
Last edited Oct 5, 2021
Created on Oct 5, 2021
Forked from Mouse Follower

This example demonstrates how to load a CSV dataset in a React component using the d3.csv method. The code fetches a list of CSS named colors from a GitHub gist and displays a message summarizing the loaded data, including its size in kilobytes, row count, and column count. The visualization uses React hooks (useState and useEffect) to manage asynchronous data loading, with the message formatted using d3.csvFormat and rendered as SVG.

AI-generated description