Skip to main content
100%

Scatter Plot

✓ Published1🌍 Public
Rratschke
Last edited Feb 10, 2020
Created on Feb 10, 2020
Forked from Customizing Axes

This scatter plot shows the top 10 most populous countries, with each country positioned along the y-axis and its population along the x-axis using D3 v5’s `scalePoint` and `scaleLinear`. The code loads population data from a CSV file, converts values to absolute numbers, and renders circles with `d3.select` and SVG. It builds axes using `d3.axisLeft` and `d3.axisBottom`, formatting tick labels with `d3.format`. The chart includes labeled axes, a title, and steel-blue circles, with margins defined to accommodate the long country names.

AI-generated description
MIT Licensed

Similar vizzes