Skip to main content
100%

Scatter plot

✓ Published0🌍 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.

MIT Licensed

Similar vizzes