Scatter Plot w/ D3
This scatter plot displays the top 10 most populous countries in 2018 using data from World Population Prospects, with each point’s x-position representing population and y-position representing country. The visualization uses D3 v7 with `scaleLinear` for population and `scalePoint` for country categories, rendering circles as SVG elements. The code applies `axisBottom` and `axisLeft` with custom tick formatting via `format('.3s')` to abbreviate population values. Axis lines are removed, and gridlines extend across the plot. Population data is loaded from a CSV file and multiplied by 1000 to reflect actual values.
AI-generated descriptionThis bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Propsects 2017.