Skip to main content
100%

Making a Scatter Plot II

✓ Published2🌍 Public
Eegrebing
Last edited Sep 21, 2020
Created on Sep 20, 2020

This example visualizes the top 10 most populous countries using a scatter plot, with countries on the y-axis and population on the x-axis. The chart is rendered as SVG using D3 v6, with circles sized at a fixed radius. The code demonstrates the use of `scaleLinear` for the x-axis, `scalePoint` for evenly spaced y-axis positions, and `axisLeft`/`axisBottom` for tick marks and labels. Population data is loaded from a CSV file and multiplied by 1000, with axis labels formatted using `format` to abbreviate large numbers.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes