Fork of Loading data with React and D3
This example demonstrates a React and D3 v6 workflow for loading external CSV data, displaying summary statistics about the dataset, and rendering a visual representation of CSS named colors. The code uses React hooks (`useState`, `useEffect`, `useCallback`) to manage asynchronous data loading via `d3.csv`, fetching a gist-hosted file containing color names and RGB hex values. Once loaded, the app calculates and displays dataset size in kilobytes, row count, and column count using `d3.csvFormat`. The example shows how to integrate D3 data-fetching methods within a React component lifecycle, with the resulting data available for further visualization tasks.