Skip to main content
100%

Scatter Plot w/ D3

✓ Published1🌍 Public
GGabe Nascimento
Last edited Oct 19, 2021
Created on Oct 14, 2021

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 description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Propsects 2017.

MIT Licensed

Similar vizzes