Skip to main content
100%

Scatter plot

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

MIT Licensed

Similar vizzes