Making a Scatter Plot
✓ Published1🌍 Public
This example shows the top 10 most populous countries as circles positioned along a scatter plot, with population on the x-axis and country names on the y-axis. It uses D3 v6 APIs including `scaleLinear`, `scalePoint`, `axisBottom`, and `axisLeft` to construct the chart, while `csv` loads the data file. The rendering draws SVG circles with a fixed radius, and gridlines are created via tick marks. Population values are formatted with `format('.3s')` and converted from thousands to raw numbers.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed