Making a Bar Chart
✓ Published1🌍 Public
This bar chart ranks the top 10 most populous countries by their 2018 population estimates from the United Nations World Population Prospects 2017. It uses D3 v5 with an SVG canvas, employing `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis. The code loads data via `csv`, maps population values, and renders steel-blue rectangles with `axisLeft` and `axisBottom` for axis ticks.
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.
MIT Licensed