Skip to main content
100%

Fork of Refactored Bar Chart

✓ Published1🌍 Public
KKRITIKA RAI DWIVEDI
Last edited Jun 25, 2021
Created on Jun 25, 2021

This example visualizes the top 10 most populous countries as horizontal bars, using SVG rendering within a React app. The chart displays population values against country names, with no axes initially, though it includes bottom and left axis components built from D3 scales. Data comes from the UN World Population Prospects 2019 CSV, loaded via `d3.csv`. The code uses React hooks (`useState`, `useEffect`) and D3 v5 functions like `scaleBand` and `scaleLinear` to position marks and axes, with all rendering handled by React elements.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.

MIT Licensed

Similar vizzes