Skip to main content
100%

Scatter Plot

✓ Published1🌍 Public
HHassan Abdullah
Last edited Dec 5, 2021
Created on Dec 5, 2021
Forked from Customizing Axes

This scatter plot displays the populations of the top 10 most populous countries, using 2018 data from the United Nations World Population Prospects. A linear scale maps population counts to horizontal positions, while a point scale arranges country names vertically. The code builds the SVG visualization with d3.scaleLinear, d3.scalePoint, d3.axisLeft, and d3.axisBottom, formatting tick labels with d3.format. Grid lines and custom axis labels enhance readability, and circles render the data points.

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