Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the population of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The visualization uses D3 v5 with an SVG rendering, employing `d3.scaleLinear` for the x-axis and `d3.scaleBand` for the categorical y-axis. Data is loaded asynchronously from a CSV file via `d3.csv`, and axes are generated with `d3.axisLeft` and `d3.axisBottom`. Rectangles are appended and sized to represent each country’s population in thousands.
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