Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter plot

Public visualization

Viewing a saved revision (read-only)

76dbd5130825457d97367d9f7d617357

Scatter plot

0 stars1🌍 Public
LLonwabo11
Last edited May 7, 2019
Created on May 6, 2019
Forked from Scatter plot

This scatter plot visualizes population data for ten countries, using horizontal bars to represent the population of each nation. The chart reads a CSV file containing country names and population figures, which are then scaled and rendered as SVG rectangles. Built with D3 v5, the code uses `scaleLinear` for the x-axis and `scaleBand` for the y-axis, populating the bars via `selectAll` and `append`.

AI-generated description

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