BarChart
✓ Published0🌍 Public
This example shows a horizontal bar chart of country populations, with bars ordered alphabetically by country name. It uses D3 v5’s `scaleBand` for the y-axis categories, `scaleLinear` for the x-axis population values, and `axisLeft`/`axisBottom` to render axes. Population figures from the CSV are multiplied by 1000 to reflect actual counts. The SVG is drawn via `select`, with rectangles appended through `selectAll('rect').data().enter()`.
AI-generated descriptionMIT Licensed