Skip to main content
100%

UN Population Bar Chart

✓ Published1🌍 Public
JJohn Lewis
Last edited Nov 1, 2021
Created on Nov 1, 2021

This visualization displays the top 10 most populous countries in 2020 as horizontal bars, with bar length proportional to population. The React component loads the UN population dataset via d3.csv, then renders an SVG using scaleBand for the categorical country axis and scaleLinear for the population values. The chart fills the entire browser window (width and height set to window dimensions) and updates only after the data loads, initially showing a large “Loading…” message. The code uses React hooks (useState, useEffect) to manage the asynchronous data fetching and D3’s scale functions for mapping data to pixel coordinates.

AI-generated description

A program that uses data to render a radial burst visualization of all the named colors in CSS.

MIT Licensed

Similar vizzes