Skip to main content
100%

Loading Data with D3 and React

✓ Published1🌍 Public
MMaciek Sitkowski
Last edited Sep 23, 2020
Created on Sep 23, 2020

This example demonstrates how to load an external CSV dataset of named CSS colors into a React application using D3 utilities. While the data is being fetched, the screen displays a "Loading..." message, and once loaded, it shows a summary of the dataset’s size, row count, and column count using React state and the `useEffect` hook. The code leverages `d3.csv` for fetching the data and `d3.csvFormat` for calculating the file size, with React 16.9 managing the component state and rendering.

AI-generated description
  • load some data using D3 utilities
  • use React State to keep track of data
  • dataset used: named CSS colors
MIT Licensed

Similar vizzes