🌍 Public
Viewing a saved revision (read-only)
fe8d5da74e5e467888f0d0111ba02752
Scatter Plot
A scatter plot displays the populations of the top 10 most populous countries, with circles positioned along a linear x-axis for population counts and a point scale y-axis for country names. The code uses D3 v7 APIs including `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` to render an SVG visualization. Population values from the CSV data are multiplied by 1000, and the x-axis tick labels are formatted with `format('.3s')` to display values in billions. Grid lines extend across the chart via tick sizing, and the circle radius is fixed at 18 pixels.
AI-generated description