Skip to main content
100%

Ordinal Scatter Plot

✓ Published0🌍 Public
SSunny-DV
Last edited Nov 10, 2019
Created on Nov 10, 2019

This example uses a scatter plot with an ordinal y-axis to show the populations of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The code uses D3 v5’s `scalePoint` for the categorical country axis, `scaleLinear` for the population axis, and `axisLeft` and `axisBottom` to render grid lines and ticks. Circles are drawn using SVG, with population values parsed from a CSV and reformatted in 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.

MIT Licensed

Similar vizzes