Skip to main content
100%

Scatter Plot

✓ Published1🌍 Public
MMelina
Last edited Jun 13, 2020
Created on Jun 13, 2020
Forked from Customizing Axes

A scatter plot displays the population of the top 10 most populous countries as circles along a linear x-axis and a point-scale y-axis. Using D3.js v5, the code loads data from a CSV, applies a scaleLinear for population and scalePoint for country names, and renders axes with tick formatting using the format function. Circles are appended via a data join, with a custom title and axis labels, while tick lines and domain elements are removed for a cleaner appearance.

AI-generated description

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

MIT Licensed

Similar vizzes