Fork of Pathetic Bar Chart
✓ Published0🌍 Public
This example shows the top 10 most populous countries as a bare bar chart with no axes or labels, using rectangles whose widths encode population. The visualization fetches data from the United Nations World Population Prospects 2019 CSV, then sorts and slices it to the first ten rows inside a React component. It uses d3.csv for loading, d3.scaleBand for the vertical country positioning, and d3.scaleLinear for the horizontal population values, rendering the output as SVG via React elements.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed