Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Fork of Rendering Data with React & D3

0 stars1🌍 Public
Nnncis
Last edited Sep 29, 2023
Created on Sep 28, 2023

This visualization displays the top 10 most populous countries in 2020 as a horizontal bar chart, using React to render SVG rectangles that scale with each country’s population. It loads CSV data via `d3.csv` and transforms the population column to numeric values with a custom row function. The chart employs `d3.scaleBand` for the country categories and `d3.scaleLinear` for the population values, while React’s `useState` and `useEffect` manage the asynchronous data fetching and rendering state.

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!

Comments

Sign in to join the discussion.

MIT Licensed