Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Scatter Plot

Public visualization

Viewing a saved revision (read-only)

188b379a1814444785ec525a92e6e720

Making a Scatter Plot

0 stars1🌍 Public
CChristine
Last edited Mar 28, 2020
Created on Mar 18, 2020

This example shows a scatter plot of the top ten most populous countries, with population on the x-axis and country names on the y-axis. It uses D3 v5’s `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` APIs to map the data from `data.csv` into SVG circles. The chart includes gridlines, axis labels, and a title, with population values formatted in billions using D3’s `format('.3s')`.

AI-generated description

Making a Scatter Plot