Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pathetic Bar Chart

Public visualization

Viewing a saved revision (read-only)

c2896832cf234d70acc86fb165a1acfc

Pathetic Bar Chart

0 stars1🌍 Public
WWilliam Couturiaux
Last edited Apr 13, 2021
Created on Apr 13, 2021

This bar chart displays the ten most populous countries in 2020 using UN population data. The visualization loads the CSV dataset with D3’s `csv` utility and renders horizontal bars through React components in SVG. D3’s `scaleBand` and `scaleLinear` map country names to vertical positions and population values to bar widths, while React’s `useState` and `useEffect` hooks manage data fetching and component state.

AI-generated description

A program that loads population data with D3 utilities and uses React to render the data as a bar chart.