Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Using arcs for rendering Data with React

Public visualization

Using arcs for rendering Data with React

0 stars0🌍 Public
AAman Singh
Last edited May 17, 2023
Created on Apr 13, 2023

This example visualizes United Nations population data from a CSV file, loading the data with `d3.csv` into React state via the `useState` and `useEffect` hooks. It renders the dataset as a series of SVG rectangles whose height and width are mapped to population values, with a loading indicator shown until the data arrives. The code demonstrates integrating D3’s data-loading utilities with React’s component lifecycle and SVG rendering.

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