Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the populations of the ten most populous countries, using 2018 estimates from the United Nations World Population Prospects. The chart renders countries on the y-axis and population values on the x-axis, with bars scaled linearly via `d3.scaleLinear` and positioned using `d3.scaleBand`. Data is loaded from a CSV file with `d3.csv`, and axes are generated with `d3.axisLeft` and `d3.axisBottom`. The visualization is built with D3 v5 and rendered as SVG elements.
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