Making a Bar Chart
✓ Published1🌍 Public
This bar chart ranks the top 10 most populous countries, with population values sourced from the 2018 United Nations World Population Prospects estimate. The chart uses D3 v5’s `scaleLinear` and `scaleBand` for axes, `axisBottom` and `axisLeft` for tick marks, and SVG rectangles for bars. The x-axis tick labels are formatted via `d3.format` to abbreviate large numbers, such as converting billions to billions with the letter "B". The visualization also customizes axes by removing domain lines and adding a plot 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.
MIT Licensed