🌍 Public
Viewing a saved revision (read-only)
dabd6e565fd44617b1025f1bd221682e
Scatter Plot.js
This scatter plot displays the population of five countries—China, India, the United States, Indonesia, and Brazil—on a linear scale, with country names on the y-axis and population counts on the x-axis. Circles mark each data point, accompanied by axis labels and a title. Using D3 v5 with SVG rendering, the code loads data via `d3.csv`, scales values with `scaleLinear` and `scalePoint`, and generates axes via `axisBottom` and `axisLeft`. Population figures are multiplied by 1000 to represent raw counts.
AI-generated description