Fork of Pathetic Bar Chart
✓ Published0🌍 Public
This example displays the top 10 most populous countries as horizontal bars without axes, using the United Nations World Population Prospects 2019 dataset. The visualization loads CSV data with `d3.csv`, filters it to the first ten rows, and renders the bars as SVG `<rect>` elements. It employs `d3.scaleBand` for the y-axis country positions and `d3.scaleLinear` for the x-axis population values. The app is built with React, managing loading state via hooks `useState` and `useEffect`.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed