Skip to main content
100%

Making a scatterplot

✓ Published0🌍 Public
VVinh H. Le
Last edited May 6, 2020
Created on May 6, 2020
Forked from Making a Bar Chart

This scatterplot displays the population of the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects. It shows each country as a circle positioned along a linear population scale and a point-based country scale. The code uses D3 v5 modules including `d3.csv`, `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` to render the SVG. Axis labels and a title are added manually, with tick formatting abbreviating values in billions. The rendering is purely SVG-based.

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.

MIT Licensed

Similar vizzes