🌍 Public
Viewing a saved revision (read-only)
0260036a588b4e5b87e17b17148a307b
Refactored Bar Chart
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