Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the top 10 most populous countries using 2018 population estimates from the United Nations World Population Prospects. It shows each country’s population as a horizontal bar, with formatted axis labels (e.g., converting thousands to billions) and gridlines. The visualization uses D3 v5 APIs including `scaleLinear`, `scaleBand`, `axisBottom`, and `axisLeft` to construct the chart, rendering via SVG. The axis tick format is customized by replacing ‘G’ with ‘B’ in D3’s compact notation.
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.
MIT Licensed