Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Rendering Data with React and D3

Public visualization

Viewing a saved revision (read-only)

034871410cc34c189050e1c25ff87431

Fork of Fork of Rendering Data with React and D3

0 stars1🌍 Public
DDeborah Ong
Last edited Apr 3, 2021
Created on Apr 3, 2021

This visualization uses React to render a bar chart of the top 10 countries by population in 2020, sourced from UN population data loaded via `d3.csv`. The `App` component fetches the data asynchronously and displays a loading message until ready. D3 utilities `scaleBand`, `scaleLinear`, and `max` compute the chart’s scales and domain, while React maps the data array to SVG `rect` elements, positioning and sizing each bar according to the country name and population value.

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.