Skip to main content
100%

Scatter Plot

✓ Published1🌍 Public
NNicolas MacFlanigan
Last edited Nov 15, 2020
Created on Nov 15, 2020
Forked from Customizing axes

This scatter plot displays the population of the top 10 most populous countries, with each country positioned along the y-axis and its population on the x-axis. The code loads data from a CSV file using `d3.csv`, scales the x-axis with `d3.scaleLinear` and the y-axis with `d3.scalePoint`, and renders circles as SVG elements. Axes are generated with `d3.axisLeft` and `d3.axisBottom`, including customized tick formatting to abbreviate large numbers with the `d3.format` function.

AI-generated description
MIT Licensed

Similar vizzes