Bar Charts
This bar chart displays the top 10 most populous countries based on 2018 data from the United Nations World Population Prospects, with population values on the x-axis and country names on the y-axis. The visualization uses D3 v5 APIs including `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render SVG bars. Population values are formatted with abbreviations (e.g., "1.42B" for China). The chart includes a title, axis labels, and customized tick styling, with gridlines drawn via negative tick sizes on the x-axis.
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.