🌍 Public
Fork of Loading Data with React & D3
This example displays a brief text summary of the US Police Shootings dataset, showing its size in kilobytes, row count, and column count. It loads the data from a CSV file using the `csv` function from D3 v5, and React state management handles the asynchronous fetch and rendering. The component uses `useEffect` to trigger the load and `useState` to store the resulting table, while the `message` function formats the statistics via `d3.csvFormat`.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed
Comments
Sign in to join the discussion.