🌍 Public
Viewing a saved revision (read-only)
7bc75c167fc546159b2542d24e3ff6e2
2019 Global Population Stylized Bar Chart
This example visualizes the top 10 most populous countries in 2019 using a horizontal bar chart, with population values on the x-axis and country names on the y-axis. Each bar includes a tooltip showing the formatted population value. The chart is built with React, rendering SVG elements, and uses D3.js scales (scaleBand and scaleLinear) with the d3.csv loader to fetch United Nations World Population Prospects data, while d3.format formats tick labels from billions to abbreviated strings.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.