Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the top 10 most populous countries based on United Nations 2017 population estimates, converted from thousands to absolute counts. It uses D3 v5 with SVG rendering, employing `scaleLinear` for population values and `scaleBand` for country categories. The axes are customized via `axisLeft` and `axisBottom`, with tick labels formatted using `format('.3s')` to show billions (e.g., "1.42B"). The chart includes a title, x-axis label, and light green bars, with data loaded from a CSV file using `d3.csv`.
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.
MIT Licensed