Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot

Public visualization

Viewing a saved revision (read-only)

84218853ef144e8eb2b3ff57d085eec7

Scatter Plot

0 stars0🌍 Public
Mmedhedijebara
Last edited May 6, 2021
Created on May 6, 2021
Forked from Making a bar Chart

This scatter plot shows the population of nine South Asian countries, with each circle’s horizontal position encoding population size and its vertical position arranged by country name. The code loads data from a CSV file using `d3.csv`, then applies `d3.scaleLinear` for the x-axis and `d3.scalePoint` for the y-axis, rendering circles as SVG elements. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, while population values are formatted with `d3.format` to abbreviate large numbers. The visualization uses a fixed 960×500 SVG canvas with custom margins and styled tick labels.

AI-generated description