Bar chart
✓ Published1🌍 Public
This example displays the top 10 most populous countries for 2020 as a horizontal bar chart, using rectangular SVG elements scaled by population size. The data comes from a UN Population CSV file, loaded with `d3.csv`. React manages the component state and rendering, while D3 v7 provides `scaleBand` for country positions on the y-axis and `scaleLinear` for population on the x-axis, with `max` determining the domain.
AI-generated descriptionA program that loads some data
MIT Licensed