Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
BBubfield
Last edited May 21, 2022
Created on May 21, 2022

This example shows a horizontal bar chart of the top 10 countries by 2020 population from a UN dataset, loaded via `d3.csv`. React state manages the fetched data, while `d3.scaleBand` and `d3.scaleLinear` map country names and population values to SVG rectangles. The visualization renders with React’s declarative JSX, using `d3.max` for the domain and the `useEffect` hook to trigger the asynchronous data load. The bars update on data arrival, replacing a simple loading text.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes