Fork of Refactored Bar Chart
✓ Published0🌍 Public
This example shows the top 10 most populous countries as horizontal bars, scaled by population using linear and band scales from D3 v5. Data from the UN World Population Prospects 2019 is fetched via `csv` and sliced to the top 10. The React app renders SVG axes and marks through reusable components, with the y-axis listing country names and the x-axis displaying population values. The bars are drawn as `<rect>` elements using `scaleBand` for vertical positioning and `scaleLinear` for width, with no additional styling.
AI-generated descriptionA program that shows the top 10 most populous countries as a pathetic bar chart with no axes.
MIT Licensed