scatter plot
This scatter plot displays the population of the ten most populous countries from the 2018 United Nations World Population Prospects estimate. Each circle’s horizontal position encodes population on a linear scale, while the vertical position uses a point scale for country names. The code uses D3 v7 APIs including `scaleLinear`, `scalePoint`, `axisBottom`, and `axisLeft`, with SVG rendering via data joins. The population values are converted from the CSV’s raw numbers into actual estimates by multiplying by 1,000. Custom tick formatting replaces “G” with “B” to show billions.
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.
See also the first bar chart visualization that this one builds on: Making a Bar Chart.