Skip to main content
100%

Making a Scatter Plot

✓ Published1🌍 Public
Llars-ruijs
Last edited Nov 9, 2020
Created on Nov 9, 2020
Forked from Customizing Axes

This example shows the top 10 most populous countries as circles positioned along a scatter plot, with population on the x-axis and country names on the y-axis. It uses D3 v6 APIs including `scaleLinear`, `scalePoint`, `axisBottom`, and `axisLeft` to construct the chart, while `csv` loads the data file. The rendering draws SVG circles with a fixed radius, and gridlines are created via tick marks. Population values are formatted with `format('.3s')` and converted from thousands to raw numbers.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes