Skip to main content
100%

Loading data with React and D3

✓ Published2🌍 Public
SsunilthkGmail
Last edited Jan 23, 2023
Created on Jan 22, 2023
Forked from Intro_to_d3

This example demonstrates a minimal React application that loads and summarizes a CSV dataset from a GitHub gist using D3’s `csv` method. It shows how to integrate React hooks like `useEffect` and `useState` with asynchronous D3 data loading. The app displays dataset statistics—including size in kilobytes, row count, and column count—via a custom local ES6 module called `getMessage`. React renders the result, while D3 is imported directly from the `"d3"` package. The page also loads React, ReactDOM, and D3 from CDN links in the HTML.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes