Fork of Making a Bar Chart
✓ Published0🌍 Public
This bar chart displays the populations of the ten most populous countries, using 2018 estimates from the United Nations’ World Population Prospects. The code loads data from a CSV file with `d3.csv`, then renders horizontal bars using `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`. The y-axis lists country names, while the x-axis applies a custom tick formatter via `format(".3s")` to abbreviate large numbers in billions. The chart is drawn as SVG, with bars styled in steelblue.
AI-generated descriptionThis bar chart shows population of 10 most populos countris.The data comes from the year 2018 estimate in United Nations:World Population Prospects 2017.
MIT Licensed