Skip to main content
100%

Scatter Plot

✓ Published0🌍 Public
MMiguel-GC
Last edited Nov 26, 2019
Created on Nov 26, 2019
Forked from Customizing Axes

This scatter plot displays the ten most populous countries, with each circle representing a nation’s population on the x-axis and country name on the y-axis. The code uses D3 v5’s `scaleLinear`, `scalePoint`, `axisLeft`, and `axisBottom` to construct the chart, and loads data from a CSV file via `d3.csv`. Circles are rendered as SVG elements, with axis ticks and labels styled through CSS. The x-axis uses a custom tick format that abbreviates large numbers by converting gigabytes to billions.

AI-generated description

Scatter Plot

MIT Licensed

Similar vizzes