Viewing a saved revision (read-only)
416eeebceed147f997419d61e6c37f2d
Fork of Fork of Fork of Fork of Fork of Making a Bar Chart
This bar chart displays the 2018 population estimates for the top 10 most populous countries, sourced from the United Nations World Population Prospects. Using D3 v5, it renders an SVG with horizontal bars sorted by country name, a formatted x-axis that abbreviates large numbers (e.g., "B" for billions), and a custom title. The code applies `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`, with data loaded via `d3.csv` and scales configured inside the `render` function.
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.