Viewing a saved revision (read-only)
4213b214af8544b8925dd1bc168bf5ee
Scatter plot
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 descriptionThis 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.