🌍 Public
Viewing a saved revision (read-only)
b30bb4a108854bc2b4223bade76c0df9
Making a Bar Chart
This bar chart displays population estimates for five countries, with horizontal bars sorted by country name and scaled proportionally to population values loaded from a CSV file. The visualization uses D3 v5’s `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to map data to SVG rectangles, while the `csv` method parses the data and converts population strings to numbers. The chart populates a static SVG canvas with a steelblue fill and clear axis labels.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.