Skip to main content
100%

Scatterplot

✓ Published0🌍 Public
Wwoznicak
Last edited Aug 13, 2020
Created on Aug 12, 2020
Forked from Making a Bar Chart

A scatterplot displays country populations as circles, with population values mapped along both x and y axes using linear scales. The visualization loads data from a CSV file, multiplies each population value by 1000, and renders circles sized at a fixed radius. Built with D3 v5, the code uses `select`, `csv`, `scaleLinear`, and `max` to append SVG circles, positioning them by scaling population values against the chart dimensions. No axes or labels are drawn, making the plot purely positional.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes