Making a Bar Chart
✓ Published1🌍 Public
This bar chart displays the population of the top 10 most populous countries in 2018, using data from the United Nations World Population Prospects. The visualization pairs a linear scale for population values with a band scale for country names, rendering bars as SVG rectangles. It customizes D3 axes by removing domain lines and using a tick formatter that abbreviates large numbers, such as replacing "G" with "B" for billions. The chart also includes axis labels and a title, styled with steelblue bars and an SVG-based layout.
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