Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Loading Data with React & D3

Public visualization

Fork of Loading Data with React & D3

0 stars0🌍 Public
AAvonlea Fisher
Last edited Feb 18, 2021
Created on Feb 18, 2021

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 description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed