Fork of Pathetic Bar Chart
✓ Published0🌍 Public
This example visualizes the ten most populous countries as a set of plain rectangles, each with a width proportional to its population and no axes or labels. The bar chart is implemented using React and D3 v5, where D3’s `csv` function loads data from the United Nations World Population Prospects 2019, and `scaleBand` and `scaleLinear` map country names and population values to SVG coordinates. Each bar is drawn as an SVG `rect` element generated by React’s `map` function, with the chart rendered inside an `<svg>` component.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed