Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

loading data d3

Public visualization

loading data d3

0 stars0🌍 Public
Kkhaled mohamed
Last edited Apr 24, 2021
Created on Apr 24, 2021
Forked from mouse follower

This example demonstrates asynchronous data loading in a React application using D3 v6. It fetches a CSV file of CSS named colors from a GitHub gist via `d3.csv()` and displays either a loading message or a data summary through a React state hook. The code uses `useState` and `setData` to trigger re-rendering when the promise resolves, while a secondary helper parses the fetched text with `d3.csvParse()` to show file size in kilobytes.

AI-generated description

mouse follower

Comments

Sign in to join the discussion.

MIT Licensed