🌍 Public
Viewing a saved revision (read-only)
5e3eeb2347094d04b15b844d2b56f548
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 descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.