Skip to main content
100%

Scatter Plot

✓ Published1🌍 Public
BBo Yang
Last edited Jul 20, 2021
Created on Jul 20, 2021
Forked from Customizing Axes

This scatter plot visualizes the top 10 most populous countries using a 2018 United Nations estimate, mapping population on the x-axis and country names on the y-axis. It uses D3 v5 with SVG rendering, employing `scaleLinear` for the population axis, `scalePoint` for categorical positioning, and `axisBottom`/`axisLeft` for gridlines and tick marks. The code formats population values using `format` with a B suffix for billions.

AI-generated description

This 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.

MIT Licensed

Similar vizzes