🌍 Public
Viewing a saved revision (read-only)
779ab64f55cd4d6a8848d1dc41280945
Stylized Bar Chart
This example shows the top 10 most populous countries as a horizontal bar chart, with population values labeled along the x-axis and country names on the y-axis. Using React for component structure and D3 v5 for scales and data loading, it renders SVG rectangles via the `scaleBand` and `scaleLinear` APIs. Data comes from the United Nations World Population Prospects 2019, loaded through D3’s `csv` function. Native SVG `<title>` elements provide tooltips on hover.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.