Skip to main content
100%

Scatter Plot w. 1 Ordered Attribute

✓ Published2🌍 Public
Jjf1978
Last edited Jun 2, 2020
Created on Jun 2, 2020
Forked from Customizing Axes

This scatter plot shows the land area of Sweden, Greenland, and the US as circles on a linear x-axis and categorical y-axis, with gridlines marking each tick. The code uses D3 v5’s `csv` loader, `scaleLinear` and `scalePoint`, and `axisBottom`/`axisLeft` to render the SVG. Circles receive a fixed radius, and the x-axis formats values with `.1s` notation. The chart reads from `data.csv`, which contains country names and sizes in square kilometers.

AI-generated description
MIT Licensed

Similar vizzes