Making a Bar Chart
✓ Published0🌍 Public
This horizontal bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. Population values are shown for each country, with bars extending proportionally from the left axis. The visualization uses D3 v5, specifically the `scaleBand` and `scaleLinear` functions for the y and x axes, respectively, while rendering bars as SVG `rect` elements. The data is loaded from a CSV file, and the chart includes axis labels via `axisLeft` and `axisBottom`.
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