Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot

Public visualization

Scatter Plot

1 star2🌍 Public
Xxsg13
Last edited Nov 28, 2020
Created on Nov 28, 2020
Forked from Customizing Axis

This chart displays the population of the top 21 most populous countries as circles on a scatter plot, with each country positioned along the y-axis and its population scaled along the x-axis. The visualization uses d3.csv to load data from a CSV file, d3.scaleLinear for the population axis, and d3.scalePoint for the categorical country axis. Axes are rendered with d3.axisLeft and d3.axisBottom, with tick labels formatted using d3.format to abbreviate large numbers, such as converting billions to "B." The SVG rendering is handled entirely through D3 selections and appended elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed