Fork of Fork of Fork of Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the 2018 population estimates for the ten most populous countries, drawn from United Nations data. It uses D3 v5 APIs including `select`, `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to render an SVG graphic. The chart customizes axes by removing gridlines and domains, and formats population values using `format('.3s')` to abbreviate numbers with a 'B' suffix, while the x-axis label is annotated as "Population". Bars are filled with a steelblue color via CSS.
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