Fork of Pathetic Bar Chart2
✓ Published0🌍 Public
This example displays the top 10 most populous countries as a horizontal bar chart, with no axes or labels, using country names as categorical bands and population counts mapped to bar widths. The code loads UN World Population Prospects 2019 data via `d3.csv`, parses the 2020 population column, and slices the first ten rows. It renders SVG rectangles using React components and D3 scales: `scaleBand` for the y-axis positioning and `scaleLinear` for the x-axis extent, with dimensions fixed at 960 by 500 pixels.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed