Skip to main content
100%

Aditya - bar chart with React & D3

✓ Published2🌍 Public
AAditya Bhattacharya
Last edited Apr 5, 2022
Created on Apr 5, 2022

This bar chart visualizes the top 10 most populous countries using data from the United Nations World Population Prospects 2019. The chart renders as SVG with horizontal bars, displaying country names on the y-axis and population values on the x-axis, but omits axes lines. The code combines React’s `useState` and `useEffect` hooks with D3’s `csv` loader, `scaleBand` for the categorical y-axis, and `scaleLinear` for the continuous x-axis.

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