Skip to main content
100%

Scatter Plot of Country Populations from CSV file

✓ Published1🌍 Public
Fframptonb
Last edited Feb 14, 2023
Created on Feb 12, 2023

This example displays a scatter plot of country populations from a CSV file, with each circle positioned along a point scale for countries and a linear scale for population values. The visualization includes labeled axes, grid lines, and a formatted x-axis that abbreviates large numbers. Using D3 v5, the code loads data with `d3.csv`, scales it with `d3.scaleLinear` and `d3.scalePoint`, and renders the chart as SVG elements including axes and circles.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by producing a scatter plot chart from data within a csv file. (based on forked code from Curran Kelleher)

MIT Licensed

Similar vizzes