🌍 Public
Viewing a saved revision (read-only)
b3a16cfa8a1a4f7ca24d75cda9ff108d
Fork of Let's make a face with D3.js!
A horizontal bar chart displays population data for ten countries, sorted by size, using SVG rectangles. The visualization builds scales with `d3.scaleLinear` and `d3.scaleBand`, adds axes via `d3.axisLeft` and `d3.axisBottom`, and loads the dataset from a CSV file using `d3.csv`. Population values are multiplied by 1000 before rendering, and the chart is positioned with margins and a translated group element. The example demonstrates basic data binding and SVG manipulation with D3 v5.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.