Countries Bar chart
This bar chart visualizes the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. The chart displays horizontal bars with country names on the y-axis and population values on the x-axis, using an orange fill for the rectangles. The visualization is rendered as an SVG using D3 v5, employing `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` for layout and axes. Custom axis formatting converts large numbers to abbreviated labels (e.g., "G" replaced with "B"), and the code includes a title and axis label.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.