Skip to main content
100%

Scatterplot

✓ Published1🌍 Public
Ssherryyx
Last edited Jan 27, 2020
Created on Jan 21, 2020
Forked from Customizing Axes

This scatterplot displays the population of the ten most populous countries along a horizontal axis, with country names on the vertical axis. It uses d3.scaleLinear for the population scale and d3.scalePoint for categorical country placement, rendering SVG circles via d3.select and data joins. The code leverages d3.axisBottom and d3.axisLeft with tick sizing to create gridlines, and d3.format abbreviates population values. Data is loaded asynchronously from a CSV file using d3.csv, with strings parsed to numbers before rendering.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes