Pathetic Bar Chart UN Population 2019
✓ Published1🌍 Public
This example shows the ten most populous countries in 2020 as horizontal bars, with a linear x-scale mapping population count to bar width and a band y-scale stacking countries vertically. It uses D3’s `csv` loader to fetch UN Population 2019 data, then `scaleLinear` and `scaleBand` to compute dimensions. React renders each bar as an SVG `<rect>` element, with coordinates and widths derived from the scales. No axes are drawn, leaving the chart intentionally minimal.
AI-generated descriptionPathetic Bar Chart on UN Population. Band and linear scale, no axis
MIT Licensed