Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Practice3 scatter plot

Public visualization

Viewing a saved revision (read-only)

a5efd9815ef741db8549f8e03e39f7ed

Practice3 scatter plot

0 stars1🌍 Public
Hhossaphul
Last edited Mar 10, 2023
Created on Mar 10, 2023

A scatter plot displays the top 10 most populous countries, with population on the x-axis and country names on the y-axis, using circles to represent each nation. The visualization uses D3 v5's `scaleLinear` and `scalePoint` to map data from `data.csv` to pixel coordinates, with `axisLeft` and `axisBottom` rendering grid lines and tick labels. Population values are multiplied by 1000 and formatted with the `d3.format` `.3s` shorthand, replacing 'G' with 'B'. The SVG rendering applies CSS styling for circle fill, tick fonts, and axis labels.

AI-generated description