Skip to main content
100%

Scatter plot

✓ Published0🌍 Public
TTheRedUnicorn
Last edited Jul 21, 2019
Created on Jul 21, 2019
Forked from Vertical bar chart

This scatter plot displays the population of the top 10 most populous countries using data from the 2018 United Nations World Population Prospects, with each circle sized at a fixed radius and colored red. It uses d3.csv to load the data, d3.scalePoint for the categorical x-axis, d3.scaleLinear for the population y-axis, and d3.axisLeft with a custom tick formatter that abbreviates large numbers (e.g., converting billions to “B”). The chart also customizes axes by removing domain lines, rotating x-axis labels, and adding a titled axis label, all rendered as SVG elements within a fixed 960×500 viewport.

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