Skip to main content
100%

Scatter plot

✓ Published1🌍 Public
Pprincit
Last edited Mar 25, 2020
Created on Mar 25, 2020
Forked from Customizing Axis

This scatter plot displays the 12 most populous countries using a circular mark for each nation. The x-axis encodes population on a linear scale, with values formatted in compact notation (e.g., “1.42B”), while the y-axis uses a point scale for country names, creating evenly spaced rows. The code builds the chart with d3.csv, scaleLinear, scalePoint, axisBottom, axisLeft, and selectAll—rendering circles and axes in SVG. Population figures from the CSV are multiplied by 1,000 to reflect actual counts, and gridlines extend across the plot via tickSize.

AI-generated description
MIT Licensed

Similar vizzes