Stylized Bar Chart
✓ Published0🌍 Public
This example displays the top 10 most populous countries as horizontal bars, with country names on the y-axis and population values on the x-axis formatted as billions. The chart is rendered as an SVG using React components, with d3.scaleBand and d3.scaleLinear mapping the data, and d3.format for tick labels. Data comes from the United Nations World Population Prospects 2019 via a CSV loaded asynchronously with d3.csv, and the axes and bars are styled with teal marks and a Poppins font.
AI-generated descriptionA program that shows the top 10 most populous countries as a bar chart.
MIT Licensed