Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter plot

Public visualization

Viewing a saved revision (read-only)

de417457d1b34b6994e3bc1e275059af

Scatter plot

0 stars0🌍 Public
LLonwabo11
Last edited May 6, 2019
Created on May 6, 2019

This scatter plot visualizes population sizes for ten countries, using horizontal bars to display each nation's total population in thousands. The D3.js code loads data from a CSV file, maps population values to a linear scale for the x-axis, and uses a band scale for country names on the y-axis. SVG rectangles are rendered with a D3 selection, while axes are generated using the `axisLeft` and `axisBottom` functions. The visualization demonstrates basic DOM manipulation and data binding through D3's `csv` import and scale methods.

AI-generated description

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