Skip to main content
100%

scatter plot Forked

✓ Published1🌍 Public
Gginnyching
Last edited Oct 20, 2022
Created on Oct 1, 2022
Forked from Customizing Axes

This scatter plot displays the population of the top 10 most populous countries, with each circle positioned by country on the y-axis and population on the x-axis. The code uses D3 v5’s `scaleLinear` and `scalePoint` for axes, `axisBottom` and `axisLeft` for tick marks, and `format` to abbreviate large numbers like “B” for billions. It loads data from a local CSV file converted from the 2018 UN World Population Prospects estimate. SVG circles are rendered with a steelblue fill, and custom styling is applied via CSS for tick text, labels, and the title.

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