Refactored Bar Chart
✓ Published1🌍 Public
This example shows the top 10 most populous countries as horizontal bars, using population data from the United Nations World Population Prospects 2019. The React app renders SVG elements, with d3.scaleBand mapping countries to the y-axis and d3.scaleLinear mapping population to bar widths. Axes are drawn as React components that generate SVG lines and text elements from the scales, with a load state indicated while the CSV data is fetched.
AI-generated descriptionA program that shows the top 10 most populous countries
MIT Licensed