Fork of Pathetic Bar Chart
✓ Published1🌍 Public
This example displays the top 10 most populous countries as horizontal bars, with population values transformed from UN World Population Prospects 2019 data. The chart uses React to render SVG elements and D3’s `scaleBand` and `scaleLinear` to position bars and map population counts to widths. A bottom axis uses D3’s `format` to abbreviate values, while the left axis lists country names. The `Marks` component adds tooltips via SVG `<title>` elements, and the dataset is loaded asynchronously with `d3.csv`.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed