Stylized Bar Chart
✓ Published0🌍 Public
This example displays the ten most populous countries as horizontal bars, with country names on the y-axis and population values on the x-axis, formatted in billions using d3.format. Built with React and D3 v5, the visualization uses scaleBand for the categorical y-axis and scaleLinear for the numeric x-axis, rendering SVG rectangles with native tooltip elements. The data comes from the United Nations World Population Prospects 2019 dataset, loaded asynchronously via d3.csv and filtered to the top ten entries. The chart features a clean Poppins font and muted teal and gray styling.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed