Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

loading csv data using react and D3

Public visualization

Viewing a saved revision (read-only)

be0c5283df274739ac0b5aba87847acd

loading csv data using react and D3

0 stars1🌍 Public
LLainu Kuruvilla
Last edited Jan 10, 2022
Created on Jan 9, 2022
Forked from Mouse mover

This example demonstrates loading an external CSV file using D3’s `csv` function within a React component. It fetches a dataset of CSS named colors from a GitHub gist and displays its properties as plain text: the formatted CSV size in kilobytes, the row count, and the column count. The React app uses `useEffect` and `useState` to asynchronously fetch and store the data, then renders the summary via a custom `message` function that calls `d3.csvFormat` to measure the data.

AI-generated description

loading csv data using react and D3