🌍 Public
Viewing a saved revision (read-only)
67775ff0e52940bb93796e94b4841670
Fork of Aditya - bar chart with React & D3
This bar chart displays the top 10 most populous countries for 2020, using data from the United Nations World Population Prospects 2019. Built with React and D3 v5, the visualization renders as an SVG with horizontal bars, though it intentionally omits axes labels. The code uses React state and effects to load and filter CSV data, then applies D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis, drawing grid lines, country names, and rectangles via `d3.csv` and React DOM elements.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.