Skip to main content
100%

Scatter plots

✓ Published1🌍 Public
TTimothy sit
Last edited Dec 28, 2020
Created on Dec 28, 2020
Forked from Customizing axes

This scatter plot displays population figures for five countries, with each circle positioned along a y-axis of country names and an x-axis of population values. The visualization uses d3.csv to load the data, converts population strings to numbers, and renders SVG circles scaled with d3.scaleLinear and d3.scalePoint. Axis creation relies on d3.axisLeft and d3.axisBottom, with tick formatting that replaces "G" with "B" for billion. The chart includes gridlines, axis labels, and a title, with styling applied via external CSS.

AI-generated description
MIT Licensed

Similar vizzes