Skip to main content
100%

Scatter Plot

✓ Published1🌍 Public
EEllednera
Last edited Oct 30, 2020
Created on Oct 30, 2020
Forked from Customizing Axes

This scatter plot displays the populations of the ten most populous countries, with each country positioned along the y-axis and its population scaled along the x-axis. The visualization uses d3.csv to load the data, d3.scalePoint for the categorical country axis, and d3.scaleLinear for the population values. Circles are rendered as SVG elements, with grid lines extending across the plot from tick marks. The code applies a custom tick formatter using d3.format to abbreviate large numbers, and follows the Sunlight Foundation color and style guidelines for the chart’s typography and grid styling.

AI-generated description
MIT Licensed

Similar vizzes