🌍 Public
Viewing a saved revision (read-only)
025b41c288c34c01870ae3c06697569b
My bar chart
This example shows a horizontal bar chart of national populations with bars proportional to each country’s population value. The chart renders as SVG rectangles positioned within a fixed 960-by-500 viewport using D3 v5’s `select`, `append`, and `scaleLinear` APIs. Population data loads from a CSV via `d3.csv`, with values multiplied by 1,000 before mapping through a linear scale. The underlying framework emphasizes fundamental DOM manipulation techniques demonstrated in the accompanying video.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.